Function: verb--request-spec-metadata-get

verb--request-spec-metadata-get is a natively compiled function defined in verb.el.

Signature

(verb--request-spec-metadata-get RS KEY)

Documentation

Get the metadata value under KEY for request spec RS.

If no value is found under KEY, or if the value associated is the empty string, return nil. KEY must NOT have the prefix verb--metadata-prefix included.

Source Code

;; Defined in /nix/store/8jnfn8w2mxcxbr2crbklcnija9m0zlkq-emacs-packages-deps/share/emacs/site-lisp/elpa/verb-20260818.1921/verb.el
(defun verb--request-spec-metadata-get (rs key)
  "Get the metadata value under KEY for request spec RS.
If no value is found under KEY, or if the value associated is the
empty string, return nil.  KEY must NOT have the prefix
`verb--metadata-prefix' included."
  (let ((val (thread-first
               (concat verb--metadata-prefix key)
               (assoc-string (oref rs metadata) t)
               cdr)))
    (if (stringp val)
        (verb-util--nonempty-string val)
      val)))