Core HTTP request/response implementation.
Core HTTP request/response implementation.
(add-client-params! http-client kvs)
Add various client params to the http-client object, if needed.
Add various client params to the http-client object, if needed.
(cookie-spec f)
Create an instance of a org.apache.http.impl.cookie.BrowserCompatSpec with a validate function that you pass in. This function takes two parameters, a cookie and an origin.
Create an instance of a org.apache.http.impl.cookie.BrowserCompatSpec with a validate function that you pass in. This function takes two parameters, a cookie and an origin.
(cookie-spec-factory f)
Create an instance of a org.apache.http.cookie.CookieSpecFactory with a newInstance implementation that returns a cookie specification with a validate function that you pass in. The function takes two parameters: cookie and origin.
Create an instance of a org.apache.http.cookie.CookieSpecFactory with a newInstance implementation that returns a cookie specification with a validate function that you pass in. The function takes two parameters: cookie and origin.
(http-request-for request-method http-url body)
Provides the HttpRequest object for a particular request-method and url
Provides the HttpRequest object for a particular request-method and url
(maybe-force-proxy client request proxy-host proxy-port proxy-ignore-hosts)
(parse-headers headers & [use-header-maps-in-response?])
Takes a HeaderIterator and returns a map of names to values.
If a name appears more than once (like set-cookie
) then the value
will be a vector containing the values in the order they appeared
in the headers.
Takes a HeaderIterator and returns a map of names to values. If a name appears more than once (like `set-cookie`) then the value will be a vector containing the values in the order they appeared in the headers.
(request {:keys [request-method scheme server-name server-port uri query-string
headers body multipart socket-timeout conn-timeout proxy-host
proxy-ignore-hosts proxy-port proxy-user proxy-pass as
cookie-store retry-handler response-interceptor digest-auth
ntlm-auth connection-manager client-params]
:as req})
Executes the HTTP request corresponding to the given Ring request map and returns the Ring response map corresponding to the resulting HTTP response.
Note that where Ring uses InputStreams for the request and response bodies, the clj-http uses ByteArrays for the bodies.
Executes the HTTP request corresponding to the given Ring request map and returns the Ring response map corresponding to the resulting HTTP response. Note that where Ring uses InputStreams for the request and response bodies, the clj-http uses ByteArrays for the bodies.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close