case class Http(clientBuilder: Builder) extends HttpExecutor with Product with Serializable

Http executor with defaults

Linear Supertypes
Serializable, Serializable, Product, Equals, HttpExecutor, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Http
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. HttpExecutor
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Http(clientBuilder: Builder)

Value Members

  1. def apply[T](request: Request, handler: AsyncHandler[T])(implicit executor: ExecutionContext): Future[T]
    Definition Classes
    HttpExecutor
  2. def apply[T](pair: (Request, AsyncHandler[T]))(implicit executor: ExecutionContext): Future[T]
    Definition Classes
    HttpExecutor
  3. def apply(req: Req)(implicit executor: ExecutionContext): Future[Response]
    Definition Classes
    HttpExecutor
  4. lazy val client: DefaultAsyncHttpClient
    Definition Classes
    HttpHttpExecutor
  5. val clientBuilder: Builder
  6. def closeAndConfigure(withBuilder: (Builder) ⇒ Builder): Http

    Returns a new instance replacing the underlying clientBuilder with a new instance that is configured using the withBuilder provided.

    Returns a new instance replacing the underlying clientBuilder with a new instance that is configured using the withBuilder provided. The underlying client for this instance is closed before the new instance is created in order to avoid resource leaks.

  7. def shutdown(): Unit
    Definition Classes
    HttpExecutor

Deprecated Value Members

  1. def configure(withBuilder: (Builder) ⇒ Builder): Http

    Returns a new instance replacing the underlying clientBuilder with a new instance that is configured using the withBuilder provided.

    Returns a new instance replacing the underlying clientBuilder with a new instance that is configured using the withBuilder provided. The current client config is the builder's prototype.

    This method may cause a resource link if you've used the Http client instance you're invoking configure on. For that reason it's recommended to use closeAndConfigure instead if you need to reconfigure an existing Http instance.

    If you need to preserve this behavior, it is recommended that you invoke .copy on the Http instance in your code so that it's obvious that you have created another copy of the executor and that the old one should still be maintained.

    Annotations
    @deprecated
    Deprecated

    (Since version 0.13.0) This method is deprecated and will be removed in a future version of dispatch. Please use Http.withConfiguration or closeAndConfigure. Or, optionally, directly invoke .copy on the executor and mutate the Builder yourself.