Function: verb--request-spec-url-origin
verb--request-spec-url-origin is a byte-compiled function defined in
verb.el.
Signature
(verb--request-spec-url-origin &rest ARGS)
Implementations
(verb--request-spec-url-origin (RS verb-request-spec)) in `verb.el'.
Return the origin of RS's URL. The URL origin consists of the scheme, user, password host and port properties. Return nil instead if RS has no URL, or if all of the properties making up for the origin are themselves nil.
Source Code
;; Defined in /nix/store/8jnfn8w2mxcxbr2crbklcnija9m0zlkq-emacs-packages-deps/share/emacs/site-lisp/elpa/verb-20260818.1921/verb.el
(cl-defmethod verb--request-spec-url-origin ((rs verb-request-spec))
"Return the origin of RS's URL.
The URL origin consists of the scheme, user, password host and port
properties.
Return nil instead if RS has no URL, or if all of the properties
making up for the origin are themselves nil."
(when-let ((rs)
(url (oref rs url)))
(let ((type (url-type url))
(user (url-user url))
(password (url-password url))
(host (url-host url))
(port (url-port url)))
(when (or type user password host port)
(url-parse-make-urlobj type user password
host port)))))