Liking cljdoc? Tell your friends :D

hyperlight.http-proxy


create-conn-poolclj

(create-conn-pool)
(create-conn-pool decompress-content?)

Creates a connection pool. Decompresses compressed response streams if decompress-content? is true. Defaults to false. Returns the connection pool.

Creates a connection pool. Decompresses compressed response streams if
`decompress-content?` is `true`. Defaults to `false`. Returns the connection
pool.
sourceraw docstring

create-handlerclj

(create-handler proxy-req)

Given a map of request options which are merged with the received request map, returns a proxy handler. Extends the request map such that :sni-server-name may be provided to indicate the server-name sent with secure requests. Returns the handler wrapped in convenience middleware.

Given a map of request options which are merged with the received request
map, returns a proxy handler. Extends the request map such that
`:sni-server-name` may be provided to indicate the server-name sent with
secure requests. Returns the handler wrapped in convenience middleware.
sourceraw docstring

create-sni-conn-poolclj

(create-sni-conn-pool server-name)
(create-sni-conn-pool server-name decompress-content?)

Creates a connection pool for a given server-name with Server Name Indication provided. Decompresses compressed response streams if decompress-content? is true. Defaults to false. Returns the connection pool.

Creates a connection pool for a given `server-name` with Server Name
Indication provided. Decompresses compressed response streams if
`decompress-content?` is `true`. Defaults to `false`. Returns the connection
pool.
sourceraw docstring

default-poolclj

source

get-poolclj

(get-pool sni-server-name decompress-content?)

Returns a connection pool configured according to sni-server-name and decompress-content?.

Returns a connection pool configured according to `sni-server-name` and
`decompress-content?`.
sourceraw docstring

proxy-requestclj

(proxy-request {:keys [scheme server-name sni-server-name uri url
                       decompress-content?]
                :or {decompress-content? false}
                :as req})

Given a request map, makes an HTTP request via this map, and returns a deferred representing the response.

Given a request map, makes an HTTP request via this map, and returns a
deferred representing the response.
sourceraw docstring

secure-poolsclj

source

start-serverclj

(start-server handler options)

Starts an HTTP server using the provided Ring handler. Returns a server object.

Starts an HTTP server using the provided Ring `handler`. Returns a server
object.
sourceraw docstring

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

× close