aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus [a t] riseup [d o t] net>2022-08-17 17:32:03 +0200
committermarty hiatt <martianhiatus [a t] riseup [d o t] net>2022-08-17 17:32:03 +0200
commitd2c300322b5899a420c057301406ca0ad0c53f1f (patch)
tree7b96b2e7ef4b832c7ffc2b44a280e444401c7318
parent4b34d4f8e0314380a7877527c9a3f7e7270b9d3a (diff)
docstrings
-rw-r--r--lisp/mastodon-http.el5
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)))