Liking cljdoc? Tell your friends :D

clj-http.lite.core

Core HTTP request/response implementation.

Core HTTP request/response implementation.
raw docstring

parse-headersclj

(parse-headers conn)

Takes a URLConnection 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 URLConnection 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

requestclj

(request {:keys [request-method scheme server-name server-port uri query-string
                 headers content-type character-encoding body socket-timeout
                 conn-timeout multipart debug insecure? save-request?
                 follow-redirects chunk-size]
          :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

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

× close