finagle-clojure.http.client
close!
(close! client)Stops the given client.
Arguments:
client: an instance of com.twitter.finagle.Client
Returns:
a Future that closes when the client stops
configured
(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 withStack.Param
Returns:
the given Http.Client
http-client
(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
(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 preconfiguredHttp.Client
Returns:
a Finagle Service
with-max-request-size
(with-max-request-size client size)Configures the given Http.Client with a max request size.
Arguments:
client: an Http.Clientsize: aStorageUnitof the desired request size
Returns:
the given Http.Client
with-max-response-size
(with-max-response-size client size)Configures the given Http.Client with a max response size.
Arguments:
client: an Http.Clientsize: aStorageUnitof the desired response size
Returns:
the given Http.Client
with-tls
(with-tls client cfg-or-hostname)Configures the given Http.Client with TLS.
Arguments:
client: an Http.Clientcfg-or-hostname: aNetty3TransporterTLSConfigconfig or hostname string
Returns:
the given Http.Client
with-tls-without-validation
(with-tls-without-validation client)Configures the given Http.Client with TLS without validation.
Arguments:
client: an Http.Client
Returns:
the given Http.Client