Class/Object

dispatch

Http

Related Docs: object Http | package dispatch

Permalink

case class Http(client: AsyncHttpClient = InternalDefaults.client) extends HttpExecutor with Product with Serializable

Http executor with defaults

Linear Supertypes
Serializable, Serializable, Product, Equals, HttpExecutor, AnyRef, Any
Known Subclasses
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(client: AsyncHttpClient = InternalDefaults.client)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def apply[T](request: Request, handler: AsyncHandler[T])(implicit executor: ExecutionContext): Future[T]

    Permalink
    Definition Classes
    HttpExecutor
  5. def apply[T](pair: (Request, AsyncHandler[T]))(implicit executor: ExecutionContext): Future[T]

    Permalink
    Definition Classes
    HttpExecutor
  6. def apply(req: Req)(implicit executor: ExecutionContext): Future[Response]

    Permalink
    Definition Classes
    HttpExecutor
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. val client: AsyncHttpClient

    Permalink
    Definition Classes
    HttpHttpExecutor
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def closeAndConfigure(withBuilder: (Builder) ⇒ Builder): Http

    Permalink

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

    Returns a new instance replacing the underlying client with a new instance that is configured using the withBuilder provided. The current client config is the builder's prototype. The underlying client for this instance is closed before the new instance is created.

  11. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  12. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  17. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. def shutdown(): Unit

    Permalink
    Definition Classes
    HttpExecutor
  19. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  20. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

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

    Permalink

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

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

    As of Dispatch 0.12.2, it is recommended that you use closeAndConfigure instead to prevent the automatic resource link that using this method will cause. However, if you expect to be able to continue using this Http instance after

    In Dispatch 0.13.x, this will be changed such that it only causes a resource link if you've actually used the Http client, but the method is still deprecated and is one that we're planning to remove. If you need this functionality in the long term, it is recommended that you change your code to invoke the .copy method on the Http case class directly.

    Annotations
    @deprecated
    Deprecated

    (Since version 0.12.2) This method is deprecated and will be removed in a future version of dispatch. This method is known to cause a resource leak in Dispatch 0.12.x. If you don't need to continue using the original Http instance after invoking this, you should switch to using closeAndConfigure.

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from HttpExecutor

Inherited from AnyRef

Inherited from Any

Ungrouped