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. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def apply[T](request: Request, handler: AsyncHandler[T])(implicit executor: ExecutionContext): Future[T]
    Definition Classes
    HttpExecutor
  5. def apply[T](pair: (Request, AsyncHandler[T]))(implicit executor: ExecutionContext): Future[T]
    Definition Classes
    HttpExecutor
  6. def apply(req: Req)(implicit executor: ExecutionContext): Future[Response]
    Definition Classes
    HttpExecutor
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. lazy val client: DefaultAsyncHttpClient
    Definition Classes
    HttpHttpExecutor
  9. val clientBuilder: Builder
  10. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. 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.

  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  19. def shutdown(): Unit
    Definition Classes
    HttpExecutor
  20. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  21. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

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.

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from HttpExecutor

Inherited from AnyRef

Inherited from Any

Ungrouped