Function: eca-mcp--parse-header-lines
eca-mcp--parse-header-lines is a natively compiled function defined in
eca-mcp.el.
Signature
(eca-mcp--parse-header-lines LINES)
Documentation
Parse LINES (each "Header: value") into a plist for JSON encoding.
Source Code
;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-mcp.el
(defun eca-mcp--parse-header-lines (lines)
"Parse LINES (each \"Header: value\") into a plist for JSON encoding."
(let (out)
(dolist (l lines)
(when-let* ((pos (string-match ":" l)))
(let ((k (string-trim (substring l 0 pos)))
(v (string-trim (substring l (1+ pos)))))
(push v out)
(push (intern (concat ":" k)) out))))
(nreverse out)))