Object/Class

dispatch

Http

Related Docs: class Http | package dispatch

Permalink

object Http extends Http

Singleton default Http executor, can be used directly or altered with its case-class copy

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

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. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. val client: AsyncHttpClient

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. 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.

    Definition Classes
    Http
  8. lazy val default: Http

    Permalink

    The default executor.

    The default executor. Invoking this val will shutdown the client created by the Http singleton.

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

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

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

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

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

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

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

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

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

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

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

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

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

Deprecated Value Members

  1. def apply[T](request: Request, handler: AsyncHandler[T])(implicit executor: ExecutionContext): Future[T]

    Permalink
    Definition Classes
    HttpHttpExecutor
    Annotations
    @deprecated
    Deprecated

    (Since version 0.12.2) Using the Http singleton directly is deprecated and will be removed in a future version of dispatch. Please switch to invoking Http.default for using a globally accessible default Http client.

  2. def apply[T](pair: (Request, AsyncHandler[T]))(implicit executor: ExecutionContext): Future[T]

    Permalink
    Definition Classes
    HttpHttpExecutor
    Annotations
    @deprecated
    Deprecated

    (Since version 0.12.2) Using the Http singleton directly is deprecated and will be removed in a future version of dispatch. Please switch to invoking Http.default for using a globally accessible default Http client.

  3. def apply(req: Req)(implicit executor: ExecutionContext): Future[Response]

    Permalink
    Definition Classes
    HttpHttpExecutor
    Annotations
    @deprecated
    Deprecated

    (Since version 0.12.2) Using the Http singleton directly is deprecated and will be removed in a future version of dispatch. Please switch to invoking Http.default for using a globally accessible default Http client.

  4. 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.

    Definition Classes
    Http
    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 Http

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from HttpExecutor

Inherited from AnyRef

Inherited from Any

Ungrouped