Function: verb-part
verb-part is a natively compiled function defined in verb.el.
Signature
(verb-part &optional NAME FILENAME)
Documentation
Start a new multipart form part.
Use NAME as the "name" parameter, and FILENAME as the "filename" parameter in the Content-Disposition header. If neither NAME nor FILENAME are specified, instead of starting a new part, insert the final boundary delimiter.
Source Code
;; Defined in /nix/store/8jnfn8w2mxcxbr2crbklcnija9m0zlkq-emacs-packages-deps/share/emacs/site-lisp/elpa/verb-20260818.1921/verb.el
(defun verb-part (&optional name filename)
"Start a new multipart form part.
Use NAME as the \"name\" parameter, and FILENAME as the \"filename\"
parameter in the Content-Disposition header.
If neither NAME nor FILENAME are specified, instead of starting a new
part, insert the final boundary delimiter."
(unless verb--multipart-boundary
(user-error "%s" (concat "No multipart boundary defined\n"
"Please ensure you have called "
"(verb-boundary) first within this "
"requests tree")))
(if name
(concat "--" verb--multipart-boundary "\n"
"Content-Disposition: form-data; name=\"" name "\""
(when filename (concat "; filename=\"" filename "\"")))
(let (boundary)
(setq boundary verb--multipart-boundary
verb--multipart-boundary nil)
(concat "--" boundary "--"))))