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`.
sourceraw 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.
sourceraw docstring

construct-uriclj

Request: construct uri from map

Request: construct uri from map
sourceraw 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`.
sourceraw 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`.
sourceraw 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.
sourceraw docstring

form-paramsclj

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

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

multipartclj

Adds appropriate body and header if making a multipart request.

Adds appropriate body and header if making a multipart request.
sourceraw 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.
sourceraw docstring

query-paramsclj

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

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

request-methodclj

Request: normalize :method option

Request: normalize :method option
sourceraw docstring

throw-on-exceptional-status-codeclj

Response: throw on exceptional status codes

Response: throw on exceptional status codes
sourceraw docstring

unexceptional-statusesclj

source

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
sourceraw docstring

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

× close