diff options
author | marty hiatt <martianhiatus [a t] riseup [d o t] net> | 2022-08-17 17:32:03 +0200 |
---|---|---|
committer | marty hiatt <martianhiatus [a t] riseup [d o t] net> | 2022-08-17 17:32:03 +0200 |
commit | d2c300322b5899a420c057301406ca0ad0c53f1f (patch) | |
tree | 7b96b2e7ef4b832c7ffc2b44a280e444401c7318 /lisp/mastodon-http.el | |
parent | 4b34d4f8e0314380a7877527c9a3f7e7270b9d3a (diff) |
docstrings
Diffstat (limited to 'lisp/mastodon-http.el')
-rw-r--r-- | lisp/mastodon-http.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/mastodon-http.el b/lisp/mastodon-http.el index 8c55534..ec3b5e6 100644 --- a/lisp/mastodon-http.el +++ b/lisp/mastodon-http.el @@ -98,7 +98,8 @@ Message status and JSON error from RESPONSE if unsuccessful." (string-to-unibyte (buffer-string)))) (defmacro mastodon-http--authorized-request (method body &optional unauthenticated-p) - "Make a METHOD request with Mastodon authorization." + "Make a METHOD type request using BODY, with Mastodon authorization. +Unless UNAUTHENTICATED-P is non-nil." `(let ((url-request-method ,method) (url-request-extra-headers (unless ,unauthenticated-p @@ -133,7 +134,7 @@ Authorization header is included by default unless UNAUTHENTICATED-P is non-nil. (defun mastodon-http--get (url) "Make synchronous GET request to URL. -Pass response buffer to CALLBACK function." +Pass response buffer to CALLBACK function." (mastodon-http--authorized-request "GET" (mastodon-http--url-retrieve-synchronously url))) |