Liking cljdoc? Tell your friends :D

finagle-clojure.http.client


close!clj

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

configuredclj

(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.Client
  • p: 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`
sourceraw docstring

http-clientclj

(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

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

serviceclj

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

with-max-request-sizeclj

(with-max-request-size client size)

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

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

with-max-response-sizeclj

(with-max-response-size client size)

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

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

with-tlsclj

(with-tls client cfg-or-hostname)

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

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

with-tls-without-validationclj

(with-tls-without-validation client)

Configures the given Http.Client with TLS without validation.

Arguments:

  • client: an Http.Client

Returns:

the given Http.Client

Configures the given `Http.Client` with TLS without validation.

*Arguments*:

  * `client`: an Http.Client

*Returns*:

  the given `Http.Client`
sourceraw docstring

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

× close