(close! client)
Stops the given client.
Arguments:
client
: an instance of [[com.twitter.finagle.Client]]Returns:
a Future that closes when the client stops
Stops the given client. *Arguments*: * `client`: an instance of [[com.twitter.finagle.Client]] *Returns*: a Future that closes when the client stops
(configured client p)
Configures the given Http.Client
with the desired Stack.Param. Generally, prefer one of the
explicit configuration functions over this.
Arguments:
client
: an Http.Clientp
: a parameter that will be subsequently wrapped with Stack.Param
Returns:
the given Http.Client
Configures the given `Http.Client` with the desired Stack.Param. Generally, prefer one of the explicit configuration functions over this. *Arguments*: * `client`: an Http.Client * `p`: a parameter that will be subsequently wrapped with `Stack.Param` *Returns*: the given `Http.Client`
(http-client)
The base HTTP client. Call service
on this once configured to convert it to a full-fledged service.
Arguments:
Returns:
an instance of Http.Client
The base HTTP client. Call `service` on this once configured to convert it to a full-fledged service. *Arguments*: * None. *Returns*: an instance of `Http.Client`
(service dest)
(service client dest)
Creates a new HTTP client structured as a Finagle Service
.
Arguments:
dest
: a comma-separated string of one or more destinations with the form "hostname:port"
client
(optional): a preconfigured Http.Client
Returns:
a Finagle Service
Creates a new HTTP client structured as a Finagle `Service`. *Arguments*: * `dest`: a comma-separated string of one or more destinations with the form `"hostname:port"` * `client` (optional): a preconfigured `Http.Client` *Returns*: a Finagle `Service`
(with-max-request-size client size)
Configures the given Http.Client
with a max request size.
Arguments:
client
: an Http.Clientsize
: a StorageUnit
of the desired request sizeReturns:
the given Http.Client
Configures the given `Http.Client` with a max request size. *Arguments*: * `client`: an Http.Client * `size`: a `StorageUnit` of the desired request size *Returns*: the given `Http.Client`
(with-max-response-size client size)
Configures the given Http.Client
with a max response size.
Arguments:
client
: an Http.Clientsize
: a StorageUnit
of the desired response sizeReturns:
the given Http.Client
Configures the given `Http.Client` with a max response size. *Arguments*: * `client`: an Http.Client * `size`: a `StorageUnit` of the desired response size *Returns*: the given `Http.Client`
(with-tls client cfg-or-hostname)
Configures the given Http.Client
with TLS.
Arguments:
client
: an Http.Clientcfg-or-hostname
: a Netty3TransporterTLSConfig
config or hostname stringReturns:
the given Http.Client
Configures the given `Http.Client` with TLS. *Arguments*: * `client`: an Http.Client * `cfg-or-hostname`: a `Netty3TransporterTLSConfig` config or hostname string *Returns*: the given `Http.Client`
(with-tls-without-validation client)
Configures the given Http.Client
with TLS without validation.
Arguments:
client
: an Http.ClientReturns:
the given Http.Client
Configures the given `Http.Client` with TLS without validation. *Arguments*: * `client`: an Http.Client *Returns*: the given `Http.Client`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close