Interceptors
14Request: adds `:accept` header. Only supported value is `:json`.
valuebabashka.http-client.interceptors
Request: adds `:authorization` header based on `:basic-auth` (a map of `:user` and `:pass`) in request.
valuebabashka.http-client.interceptors
Request: construct uri from map
valuebabashka.http-client.interceptors
Response: based on the value of `:as` in request, decodes as `:string`, `:stream` or `:bytes`. Defaults to `:string`.
valuebabashka.http-client.interceptors
Response: decompresses body based on "content-encoding" header. Valid values: `gzip` and `deflate`.
valuebabashka.http-client.interceptors
Default interceptor chain. Interceptors are called in order for request and in reverse order for response.
valuebabashka.http-client.interceptors
Request: encodes `:form-params` map and adds `:body`.
valuebabashka.http-client.interceptors
Adds appropriate body and header if making a multipart request.
valuebabashka.http-client.interceptors
Request: adds `:authorization` header based on `:oauth-token` (a string token) in request.
valuebabashka.http-client.interceptors
Request: encodes `:query-params` map and appends to `:uri`.
valuebabashka.http-client.interceptors
Request: normalize :method option
valuebabashka.http-client.interceptors
throw-on-exceptional-status-codeResponse: throw on exceptional status codes
valuebabashka.http-client.interceptors
- value
babashka.http-client.interceptors
We can't use the URI constructor because it encodes all arguments for us. See https://stackoverflow.com/a/77971448/626...
functionbabashka.http-client.interceptors