Function: majutsu-gerrit-rest--build-url
majutsu-gerrit-rest--build-url is a natively compiled function defined
in majutsu-gerrit-rest.el.
Signature
(majutsu-gerrit-rest--build-url SPEC ENDPOINT &optional PARAMS)
Documentation
Build a full URL for ENDPOINT under SPEC with query PARAMS.
Source Code
;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-gerrit-rest.el
(defun majutsu-gerrit-rest--build-url (spec endpoint &optional params)
"Build a full URL for ENDPOINT under SPEC with query PARAMS."
(unless (and (stringp endpoint) (string-prefix-p "/" endpoint))
(error "majutsu-gerrit-rest: endpoint must start with /: %S" endpoint))
(concat (plist-get spec :scheme)
"://"
(plist-get spec :host)
(majutsu-gerrit-rest--normalize-path-part (plist-get spec :path))
(majutsu-gerrit-rest--normalize-path-part (plist-get spec :prefix))
endpoint
(when params
(concat "?" (majutsu-gerrit-rest-params params)))))