Function: eca-api--make-message

eca-api--make-message is a natively compiled function defined in eca-api.el.

Signature

(eca-api--make-message PARAMS)

Documentation

Create a JSONRPC message from PARAMS, after encoding it to a JSON string.

Source Code

;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-api.el
(defun eca-api--make-message (params)
  "Create a JSONRPC message from PARAMS, after encoding it to a JSON string."
  (let ((body (eca-api--json-serialize params)))
    (concat "Content-Length: "
            (number-to-string (1+ (string-bytes body)))
            "\r\n\r\n"
            body
            "\n")))