Liking cljdoc? Tell your friends :D

clj-http.conn-mgr

Utility methods for Scheme registries and HTTP connection managers

Utility methods for Scheme registries and HTTP connection managers
raw docstring

*async-connection-manager*clj

connection manager to be rebound during async request execution

connection manager to be rebound during async request execution
sourceraw docstring

*connection-manager*clj

connection manager to be rebound during request execution

connection manager to be rebound during request execution
sourceraw docstring

get-custom-scheme-registryclj

(get-custom-scheme-registry {:keys [context verifier]})
source

get-custom-strategy-registryclj

(get-custom-strategy-registry {:keys [context verifier]})
source

get-keystoreclj

(get-keystore keystore & args)
source

get-keystore*clj

(get-keystore* keystore-file keystore-type keystore-pass)
source

get-keystore-context-verifierclj

(get-keystore-context-verifier {:keys [keystore keystore-type keystore-pass
                                       keystore-instance trust-store
                                       trust-store-type trust-store-pass]
                                :as req})
source

get-keystore-scheme-registryclj

(get-keystore-scheme-registry req)
source

get-keystore-strategy-registryclj

(get-keystore-strategy-registry req)
source

get-managers-context-verifierclj

(get-managers-context-verifier {:keys [trust-managers key-managers] :as req})

Given an instance or seqable data structure of TrustManager or KeyManager will create and return an SSLContexts object including the resulting managers

Given an instance or seqable data structure of TrustManager or KeyManager
will create and return an SSLContexts object including the resulting managers
sourceraw docstring

get-managers-scheme-registryclj

(get-managers-scheme-registry req)
source

get-managers-strategy-registryclj

(get-managers-strategy-registry req)
source

make-regular-async-conn-managerclj

(make-regular-async-conn-manager
  {:keys [keystore trust-store key-managers trust-managers] :as req})
source

make-regular-conn-managerclj

(make-regular-conn-manager {:keys [keystore trust-store key-managers
                                   trust-managers socket-timeout]
                            :as req})
source

make-reusable-async-conn-managerclj

(make-reusable-async-conn-manager opts)

Creates a default pooling async connection manager with the specified options. Handles the same options as make-reusable-conn-manager plus :io-config which should be a map containing some of the following keys:

:connect-timeout - int the default connect timeout value for connection requests (default 0, meaning no timeout) :interest-op-queued - boolean, whether or not I/O interest operations are to be queued and executed asynchronously or to be applied to the underlying SelectionKey immediately (default false) :io-thread-count - int, the number of I/O dispatch threads to be used (default is the number of available processors) :rcv-buf-size - int the default value of the SO_RCVBUF parameter for newly created sockets (default is 0, meaning the system default) :select-interval - long, time interval in milliseconds at which to check for timed out sessions and session requests (default 1000) :shutdown-grace-period - long, grace period in milliseconds to wait for individual worker threads to terminate cleanly (default 500) :snd-buf-size - int, the default value of the SO_SNDBUF parameter for newly created sockets (default is 0, meaning the system default) :so-keep-alive - boolean, the default value of the SO_KEEPALIVE parameter for newly created sockets (default false) :so-linger - int, the default value of the SO_LINGER parameter for newly created sockets (default -1) :so-timeout - int, the default socket timeout value for I/O operations (default 0, meaning no timeout) :tcp-no-delay - boolean, the default value of the TCP_NODELAY parameter for newly created sockets (default true)

If the value 'nil' is specified or the value is not set, the default value will be used.

Creates a default pooling async connection manager with the specified
options. Handles the same options as make-reusable-conn-manager plus
:io-config which should be a map containing some of the following keys:

:connect-timeout - int the default connect timeout value for connection
  requests (default 0, meaning no timeout)
:interest-op-queued - boolean, whether or not I/O interest operations are to
  be queued and executed asynchronously or to be applied to the underlying
  SelectionKey immediately (default false)
:io-thread-count - int, the number of I/O dispatch threads to be used
  (default is the number of available processors)
:rcv-buf-size - int the default value of the SO_RCVBUF parameter for
  newly created sockets (default is 0, meaning the system default)
:select-interval - long, time interval in milliseconds at which to check for
  timed out sessions and session requests (default 1000)
:shutdown-grace-period - long, grace period in milliseconds to wait for
  individual worker threads to terminate cleanly (default 500)
:snd-buf-size - int, the default value of the SO_SNDBUF parameter for
  newly created sockets (default is 0, meaning the system default)
:so-keep-alive - boolean, the default value of the SO_KEEPALIVE parameter for
  newly created sockets (default false)
:so-linger - int, the default value of the SO_LINGER parameter for
  newly created sockets (default -1)
:so-timeout - int, the default socket timeout value for I/O operations
  (default 0, meaning no timeout)
:tcp-no-delay - boolean, the default value of the TCP_NODELAY parameter for
  newly created sockets (default true)

If the value 'nil' is specified or the value is not set, the default value
will be used.
sourceraw docstring

make-reusable-conn-managerclj

(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

:key-managers - KeyManager objects to be used for connection manager :trust-managers - TrustManager objects to be used for connection manager

Note that :insecure? and :keystore/:trust-store/:key-managers/:trust-managers options are mutually exclusive

Note that :key-managers/:trust-managers have precedence over :keystore/:trust-store options

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

:key-managers - KeyManager objects to be used for connection manager
:trust-managers - TrustManager objects to be used for connection manager

Note that :insecure? and :keystore/:trust-store/:key-managers/:trust-managers options are mutually exclusive

Note that :key-managers/:trust-managers have precedence over :keystore/:trust-store options


If the value 'nil' is specified or the value is not set, the default value
will be used.
sourceraw docstring

make-reusable-conn-manager*clj

(make-reusable-conn-manager*
  {:keys [timeout keystore trust-store key-managers trust-managers] :as config})

Given an timeout and optional insecure? flag, create a PoolingHttpClientConnectionManager with <timeout> seconds set as the timeout value.

Given an timeout and optional insecure? flag, create a
PoolingHttpClientConnectionManager with <timeout> seconds set as the
timeout value.
sourceraw docstring

make-reuseable-async-conn-managerclj

(make-reuseable-async-conn-manager opts)

Wraps correctly-spelled version - keeping for backwards compatibility.

Wraps correctly-spelled version - keeping for backwards compatibility.
sourceraw docstring

make-socks-proxied-conn-managerclj

(make-socks-proxied-conn-manager hostname port)
(make-socks-proxied-conn-manager
  hostname
  port
  {:keys [keystore keystore-type keystore-pass trust-store trust-store-type
          trust-store-pass trust-managers key-managers]
   :as opts})

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

PlainGenericSocketFactoryclj

(PlainGenericSocketFactory socket-factory)

Given a Function that returns a new socket, create a PlainConnectionSocketFactory that will use that socket.

Given a Function that returns a new socket, create a
PlainConnectionSocketFactory that will use that socket.
sourceraw docstring

reusable?clj

(reusable? conn-mgr)
source

shutdown-managercljmultimethod

Shut down the given connection manager, if it is not nil

Shut down the given connection manager, if it is not nil
sourceraw docstring

socks-proxied-socketclj

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

SSLGenericSocketFactoryclj

(SSLGenericSocketFactory socket-factory)
(SSLGenericSocketFactory socket-factory ssl-context)

Given a function that returns a new socket, create an SSLConnectionSocketFactory that will use that socket.

Given a function that returns a new socket, create an
SSLConnectionSocketFactory that will use that socket.
sourceraw docstring

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

× close