ol.clave.acme.impl.http.interceptors

→uri

(->uri uri)

accept-header

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


uri-with-query

(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


query-params

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


form-params

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


decompress-body

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


decode-body

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


construct-uri

Request: construct uri from map


request-method

Request: normalize :method option


unexceptional-statuses

throw-on-exceptional-status-code

Response: throw on exceptional status codes


parse-json-body

default-interceptors

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