Function: ghub--basic-auth

ghub--basic-auth is a byte-compiled function defined in ghub.el.

Signature

(ghub--basic-auth HOST USERNAME)

Source Code

;; Defined in ~/.emacs.d/elpa/ghub-20260401.1239/ghub.el
(defun ghub--basic-auth (host username)
  (let ((url (url-generic-parse-url
              (if (member host ghub-insecure-hosts) "http://" "https://"))))
    (setf (url-user url) username)
    (url-basic-auth url t)))