Liking cljdoc? Tell your friends :D

clj-http.core-old

Core HTTP request/response implementation.

Core HTTP request/response implementation.
raw docstring

*cookie-store*clj


add-client-params!clj

(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.
raw docstring

(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.
raw docstring

(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.
raw docstring

http-request-forclj

(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
raw docstring

make-proxy-method-with-bodyclj

(make-proxy-method-with-body method)

maybe-force-proxyclj

(maybe-force-proxy client request proxy-host proxy-port proxy-ignore-hosts)

parse-headersclj

(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.
raw docstring

proxy-copy-with-bodyclj


proxy-delete-with-bodyclj


proxy-get-with-bodyclj


proxy-move-with-bodyclj


proxy-patch-with-bodyclj


requestclj

(request {:keys [request-method scheme server-name server-port uri query-string
                 headers body multipart socket-timeout connection-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 conn-timeout]
          :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.
raw docstring

set-client-paramclj

(set-client-param client key val)

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

× close