(defun my-body ()
"return plain text body"
"some body")
- Accept: application/json
- Content-Type: application/json
{
"data": {
"title": "Hello",
"hello": "world"
}
}
DELETE https://httpbin.org/status/400
GET https://httpbin.org/status/`my-http-status`
GET `base-url`/status/`my-http-status`
body=`(my-body)`
{
"some": "body"
}
- First callback
(lambda (status headers body) (message "status %s, headers %s, body %s" status headers body))
- Second callback
(lambda (status headers body) (pp (assoc 'url (json-read-from-string body))))
- Accept: application/json
GET/POST/PUT/… URL
- Header1: value
- Header2: value
{ "body": "in any mode/format" }
- First Callback
(lambda (status headers body) (message "status %s, headers %s, body %s" status headers body))
- Second Callback
(lambda (status headers body) (message "Second callback"))