Utility methods for Scheme registries and HTTP connection managers
Utility methods for Scheme registries and HTTP connection managers
connection manager to be rebound during request execution
connection manager to be rebound during request execution
(get-keystore-scheme-registry {:keys [keystore keystore-type keystore-pass
keystore-instance trust-store
trust-store-type trust-store-pass]
:as req})
(make-regular-conn-manager {:keys [keystore trust-store] :as req})
(make-reusable-conn-manager opts)
Creates a default pooling connection manager with the specified options.
The following options are supported:
:timeout - Time that connections are left open before automatically closing default: 5 :threads - Maximum number of threads that will be used for connecting default: 4 :default-per-route - Maximum number of simultaneous connections per host default: 2 :insecure? - Boolean flag to specify allowing insecure HTTPS connections default: false
:keystore - keystore file to be used for connection manager :keystore-pass - keystore password :trust-store - trust store file to be used for connection manager :trust-store-pass - trust store password
Note that :insecure? and :keystore/:trust-store options are mutually exclusive
If the value 'nil' is specified or the value is not set, the default value will be used.
Creates a default pooling connection manager with the specified options. The following options are supported: :timeout - Time that connections are left open before automatically closing default: 5 :threads - Maximum number of threads that will be used for connecting default: 4 :default-per-route - Maximum number of simultaneous connections per host default: 2 :insecure? - Boolean flag to specify allowing insecure HTTPS connections default: false :keystore - keystore file to be used for connection manager :keystore-pass - keystore password :trust-store - trust store file to be used for connection manager :trust-store-pass - trust store password Note that :insecure? and :keystore/:trust-store options are mutually exclusive If the value 'nil' is specified or the value is not set, the default value will be used.
(make-reusable-conn-manager* {:keys [timeout keystore trust-store] :as config})
Given an timeout and optional insecure? flag, create a PoolingClientConnectionManager with <timeout> seconds set as the timeout value.
Given an timeout and optional insecure? flag, create a PoolingClientConnectionManager with <timeout> seconds set as the timeout value.
(make-socks-proxied-conn-manager hostname port)
Given an optional hostname and a port, create a connection manager that's proxied using a SOCKS proxy.
Given an optional hostname and a port, create a connection manager that's proxied using a SOCKS proxy.
(PlainGenericSocketFactory socket-factory)
Given a Function that returns a new socket, create a PlainSocketFactory that will use that socket.
Given a Function that returns a new socket, create a PlainSocketFactory that will use that socket.
(shutdown-manager manager)
Shut down the given connection manager, if it is not nil
Shut down the given connection manager, if it is not nil
(socks-proxied-socket hostname port)
Create a Socket proxied through socks, using the given hostname and port
Create a Socket proxied through socks, using the given hostname and port
(SSLGenericSocketFactory socket-factory)
Given a function that returns a new socket, create an SSLSocketFactory that will use that socket.
Given a function that returns a new socket, create an SSLSocketFactory that will use that socket.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close