Request: adds :accept
header. Only supported value is :json
.
Request: adds `:accept` header. Only supported value is `:json`.
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.
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`.
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`.
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.
Request: encodes :form-params
map and adds :body
.
Request: encodes `:form-params` map and adds `:body`.
Adds appropriate body and header if making a multipart request.
Adds appropriate body and header if making a multipart request.
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.
Request: encodes :query-params
map and appends to :uri
.
Request: encodes `:query-params` map and appends to `:uri`.
Response: throw on exceptional status codes
Response: throw on exceptional status codes
(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
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close