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

source

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.
sourceraw 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.
sourceraw 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.
sourceraw 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
sourceraw docstring

make-proxy-method-with-bodyclj

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

maybe-force-proxyclj

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

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.
sourceraw docstring

proxy-copy-with-bodyclj

source

proxy-delete-with-bodyclj

source

proxy-get-with-bodyclj

source

proxy-move-with-bodyclj

source

proxy-patch-with-bodyclj

source

requestclj

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

set-client-paramclj

(set-client-param client key val)
source

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

× close