Function: verb-request-spec

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

Signature

(verb-request-spec &rest SLOTS)

Documentation

Create a new object of class type verb-request-spec(var)/verb-request-spec(fun).

Source Code

;; Defined in /nix/store/8jnfn8w2mxcxbr2crbklcnija9m0zlkq-emacs-packages-deps/share/emacs/site-lisp/elpa/verb-20260818.1921/verb.el
(defclass verb-request-spec ()
  ((method :initarg :method
           :initform nil
           :type verb--http-method-type
           :documentation "HTTP method.")
   (url :initarg :url
        :initform nil
        :type (or null url)
        :documentation "Request URL.")
   (headers :initarg :headers
            :initform nil
            :type verb--http-headers-type
            :documentation "HTTP headers.")
   (body :initarg :body
         :initform nil
         :type (or null string)
         :documentation "Request body.")
   (metadata :initarg :metadata
             :initform nil
             :type verb--alist-type
             :documentation "User-defined request metadata."))
  "Represents an HTTP request to be made.")