diff options
author | marty hiatt <martianhiatus [a t] riseup [d o t] net> | 2023-10-08 15:27:45 +0200 |
---|---|---|
committer | marty hiatt <martianhiatus [a t] riseup [d o t] net> | 2023-10-08 15:27:45 +0200 |
commit | 3442dd296a39a065fd1c15bb37e00e52d6d7e857 (patch) | |
tree | 64e7ecf17d28c2d9d1f9f451cbecabca0f3d5485 | |
parent | d2dae4643c53bc8a92d71c891f5f742a9a88d266 (diff) |
doctring for http--post
-rw-r--r-- | lisp/mastodon-http.el | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/mastodon-http.el b/lisp/mastodon-http.el index f1213a1..94a24fc 100644 --- a/lisp/mastodon-http.el +++ b/lisp/mastodon-http.el @@ -128,9 +128,12 @@ Used for API form data parameters that take an array." (cl-loop for x in array collect (cons param-str x))) -(defun mastodon-http--post (url &optional params headers unauthenticated-p json) +(defun mastodon-http--post (url + &optional params headers unauthenticated-p json) "POST synchronously to URL, optionally with PARAMS and HEADERS. -Authorization header is included by default unless UNAUTHENTICATED-P is non-nil." +Authorization header is included by default unless +UNAUTHENTICATED-P is non-nil.If JSON, encode PARAMS as JSON for +the request data." (mastodon-http--authorized-request "POST" (let* ((url-request-data (when params |