Function: ghub--retrieve
ghub--retrieve is a byte-compiled function defined in ghub.el.
Signature
(ghub--retrieve PAYLOAD REQ)
Source Code
;; Defined in ~/.emacs.d/elpa/ghub-20260401.1239/ghub.el
;;;; Internal
(cl-defun ghub--retrieve (payload req)
(pcase-let*
(((cl-struct ghub--req headers method url handler silent synchronous) req)
(url-request-extra-headers
(if (functionp headers) (funcall headers) headers))
(url-request-method method)
(url-request-data payload)
(url-show-status nil))
(if synchronous
(if-let ((buf (url-retrieve-synchronously url silent)))
(with-current-buffer buf
(funcall handler (car url-callback-arguments) req))
(error "ghub--retrieve: No buffer returned"))
(url-retrieve url handler (list req) silent))))