Core HTTP request/response implementation. Rewrite for Apache 4.3
Core HTTP request/response implementation. Rewrite for Apache 4.3
Method to retrieve the cookie policy that should be used for the request.
This is a multimethod that may be extended to return your own cookie policy.
Dispatches based on the :cookie-policy
key in the request map.
Method to retrieve the cookie policy that should be used for the request. This is a multimethod that may be extended to return your own cookie policy. Dispatches based on the `:cookie-policy` key in the request map.
(get-route-planner proxy-host proxy-port proxy-ignore-hosts http-url)
Return an HttpRoutePlanner that either use the supplied proxy settings if any, or the JVM/system proxy settings otherwise
Return an HttpRoutePlanner that either use the supplied proxy settings if any, or the JVM/system proxy settings otherwise
(graceful-redirect-strategy req)
Similar to the default redirect strategy, however, does not throw an error when the maximum number of redirects has been reached. Still supports validating that the new redirect host is not empty.
Similar to the default redirect strategy, however, does not throw an error when the maximum number of redirects has been reached. Still supports validating that the new redirect host is not empty.
(http-async-client {:keys [uri request-interceptor response-interceptor
proxy-host proxy-port async-http-builder-fns]
:as req}
conn-mgr
http-url
proxy-ignore-host)
(http-client {:keys [retry-handler uri request-interceptor response-interceptor
proxy-host proxy-port http-builder-fns]
:as req}
conn-mgr
http-url
proxy-ignore-host)
(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
(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 req)
(request {:keys [body conn-timeout conn-request-timeout connection-manager
cookie-store cookie-policy headers multipart query-string
redirect-strategy max-redirects retry-handler request-method
scheme server-name server-port socket-timeout uri
response-interceptor proxy-host proxy-port http-client-context
http-request-config proxy-ignore-hosts proxy-user proxy-pass
digest-auth ntlm-auth]
:as req}
respond
raise)
(request-config {:keys [conn-timeout socket-timeout conn-request-timeout
max-redirects cookie-policy]
:as req})
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close