Function: ghub--headers
ghub--headers is a byte-compiled function defined in ghub.el.
Signature
(ghub--headers HEADERS HOST AUTH USERNAME FORGE)
Source Code
;; Defined in ~/.emacs.d/elpa/ghub-20260401.1239/ghub.el
;;;; Internal
(defun ghub--headers (headers host auth username forge)
(push (cons "Content-Type" "application/json") headers)
(if (eq auth 'none)
headers
(unless (or username (stringp auth))
(setq username (ghub--username host forge)))
(lambda ()
(if (eq auth 'basic)
(cons (cons "Authorization" (ghub--basic-auth host username))
headers)
(cons (ghub--auth host auth username forge) headers)))))