Liking cljdoc? Tell your friends :D

babashka.http-client.interceptors


accept-headerclj

Request: adds :accept header. Only supported value is :json.

Request: adds `:accept` header. Only supported value is `:json`.
raw docstring

basic-authclj

Request: adds :authorization header based on :basic-auth (a map of :user and :pass) in request.

Request: adds `:authorization` header based on `:basic-auth` (a map
of `:user` and `:pass`) in request.
raw docstring

construct-uriclj

Request: construct uri from map

Request: construct uri from map
raw docstring

decode-bodyclj

Response: based on the value of :as in request, decodes as :string, :stream or :bytes. Defaults to :string.

Response: based on the value of `:as` in request, decodes as `:string`, `:stream` or `:bytes`. Defaults to `:string`.
raw docstring

decompress-bodyclj

Response: decompresses body based on "content-encoding" header. Valid values: gzip and deflate.

Response: decompresses body based on  "content-encoding" header. Valid values: `gzip` and `deflate`.
raw docstring

default-interceptorsclj

Default interceptor chain. Interceptors are called in order for request and in reverse order for response.

Default interceptor chain. Interceptors are called in order for request and in reverse order for response.
raw docstring

form-paramsclj

Request: encodes :form-params map and adds :body.

Request: encodes `:form-params` map and adds `:body`.
raw docstring

multipartclj

Adds appropriate body and header if making a multipart request.

Adds appropriate body and header if making a multipart request.
raw docstring

oauth-tokenclj

Request: adds :authorization header based on :oauth-token (a string token) in request.

Request: adds `:authorization` header based on `:oauth-token` (a string token)
in request.
raw docstring

query-paramsclj

Request: encodes :query-params map and appends to :uri.

Request: encodes `:query-params` map and appends to `:uri`.
raw docstring

throw-on-exceptional-status-codeclj

Response: throw on exceptional status codes

Response: throw on exceptional status codes
raw docstring

unexceptional-statusesclj


uri-with-queryclj

(uri-with-query uri new-query)

We can't use the URI constructor because it encodes all arguments for us. See https://stackoverflow.com/a/77971448/6264

We can't use the URI constructor because it encodes all arguments for us.
See https://stackoverflow.com/a/77971448/6264
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close