(->lower-case-keys m)
Converts the keys to lowercase in the map
Converts the keys to lowercase in the map
(merge-headers req-headers sign-headers)
Merges original request headers with the signature headers. This makes sure there
are no duplicates due to casing differences. When there are collisions, the signature
header is retained. This assumes the sign-headers
map is generated by the sign
function, which yields lowercase header names.
Merges original request headers with the signature headers. This makes sure there are no duplicates due to casing differences. When there are collisions, the signature header is retained. This assumes the `sign-headers` map is generated by the `sign` function, which yields lowercase header names.
(sign conf headers)
Signs a request by calculating a signature based on the given config. Returns the headers you should include in your request.
Signs a request by calculating a signature based on the given config. Returns the headers you should include in your request.
(sign-headers {:keys [url method headers] :as req} & [exclude-body?])
Builds signing headers from the request. If exclude-body?
is true,
then the request body will not be included in the signature, even if
the request contains one.
Builds signing headers from the request. If `exclude-body?` is true, then the request body will not be included in the signature, even if the request contains one.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close