How a token gets onto a request. Pure, so the default is unit-tested; the transport
(bangmod.http-api.internal) only calls whichever injector is registered.
How a token gets onto a request. Pure, so the default is unit-tested; the transport (`bangmod.http-api.internal`) only calls whichever injector is registered.
(bearer-injector request token)The default injector: Authorization: Bearer <token>, unless the call already set an
:authorization header of its own — an explicit header always wins.
The default injector: `Authorization: Bearer <token>`, unless the call already set an `:authorization` header of its own — an explicit header always wins.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |