One of my elasticsearch instances requires a "Token" header to be specified for authentication in the request. This PR adds a way to add arbitrary headers to the request in org-mode.
The syntax (and much of the code) borrows from how org-mode already treats multiple values in :var header args.
Usage looks like this:
#+BEGIN_SRC es :headers X-Token=MYTOKEN Accept=application/json
{
"query": {}
}
#+END_SRC
One of my elasticsearch instances requires a "Token" header to be specified for authentication in the request. This PR adds a way to add arbitrary headers to the request in org-mode.
The syntax (and much of the code) borrows from how org-mode already treats multiple values in
:var
header args.Usage looks like this: