dispatch.classic.thread

Http

class Http extends BlockingHttp with Future

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. Http
  2. Future
  3. Safety
  4. BlockingHttp
  5. BlockingCallback
  6. HttpExecutor
  7. RequestLogging
  8. AnyRef
  9. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Http ()

Type Members

  1. type HttpPackage [T] = StoppableFuture[T]

    Definition Classes
    Future

Value Members

  1. def != (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def == (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  5. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  6. def apply [T] (callback: Callback[T]): HttpPackage[T]

    Apply handler block when response code is 200 - 204

    Apply handler block when response code is 200 - 204

    Attributes
    final
    Definition Classes
    HttpExecutor
  7. def apply [T] (hand: Handler[T]): HttpPackage[T]

    Apply handler block when response code is 200 - 204

    Apply handler block when response code is 200 - 204

    Attributes
    final
    Definition Classes
    HttpExecutor
  8. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  9. val client : HttpClient

    Reference to the underlying client.

    Reference to the underlying client. Override make_client define your own.

    Attributes
    final
    Definition Classes
    BlockingHttp
  10. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  11. def consumeContent (entity: Option[HttpEntity]): Unit

    Make sure the entity is consumed.

    Make sure the entity is consumed.

    Definition Classes
    BlockingHttpHttpExecutor
  12. val credentials : DynamicVariable[Option[(AuthScope, Credentials)]]

    This reference's underlying value is updated for the current thread when a request specifies credentials.

    This reference's underlying value is updated for the current thread when a request specifies credentials. Typically passed to ConfiguredHttpClient.

    Definition Classes
    BlockingHttp
  13. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  14. def equals (arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  15. def execute [T] (host: HttpHost, credsopt: Option[Credentials], req: HttpRequestBase, block: (HttpResponse) ⇒ T, listener: ExceptionListener): HttpPackage[T]

    Execute for given optional parameters, with logging.

    Execute for given optional parameters, with logging. Creates local scope for credentials.

    Definition Classes
    BlockingHttpHttpExecutor
  16. def executeWithCallback [T] (host: HttpHost, credsopt: Option[Credentials], req: HttpRequestBase, callback: Callback[T]): HttpPackage[T]

    Definition Classes
    BlockingCallback
  17. def finalize (): Unit

    Call shutdown if not already shutdown, issue warning

    Call shutdown if not already shutdown, issue warning

    Definition Classes
    HttpExecutor → AnyRef
  18. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef
  19. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  20. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  21. lazy val log : Logger

    Definition Classes
    RequestLogging
  22. def make_client : HttpClient

    Shutdown connection manager if no longer in use.

    Shutdown connection manager if no longer in use.

    Definition Classes
    Safety
  23. def make_logger : Logger

    Logger for this executor, logs to console.

    Logger for this executor, logs to console.

    Definition Classes
    RequestLogging
  24. def make_message (req: Request): HttpRequestBase

    Definition Classes
    HttpExecutor
  25. def maxConnections : Int

    Maximum number of connections in pool, default is 50

    Maximum number of connections in pool, default is 50

    Definition Classes
    Safety
  26. def maxConnectionsPerRoute : Int

    Maximum number of connections one one route, default is maxConnections

    Maximum number of connections one one route, default is maxConnections

    Definition Classes
    Safety
  27. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  28. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  29. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  30. def pack [T] (request: AnyRef { def abort(): Unit }, result: ⇒ T): StoppableFuture[T] { val delegate: dispatch.classic.futures.WrappedJucFuture[T] }

    Definition Classes
    Future
  31. def shutdown (): Unit

    Release resources held by the executor.

    Release resources held by the executor.

    Definition Classes
    HttpExecutor
  32. def shutdownClient (): Unit

    Shutdown connection manager, threads.

    Shutdown connection manager, threads.

    Definition Classes
    BlockingHttpHttpExecutor
  33. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  34. def toString (): String

    Definition Classes
    AnyRef → Any
  35. def wait (): Unit

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  38. def when [T] (chk: (Int) ⇒ Boolean)(hand: Handler[T]): HttpPackage[T]

    Apply Response Handler if reponse code returns true from chk.

    Apply Response Handler if reponse code returns true from chk.

    Attributes
    final
    Definition Classes
    HttpExecutor
  39. def x [T] (hand: Handler[T]): HttpPackage[T]

    Execute full request-response handler, response in package.

    Execute full request-response handler, response in package.

    Attributes
    final
    Definition Classes
    HttpExecutor
  40. def x [T] (req: Request)(block: F[T]): HttpPackage[T]

    Attributes
    final
    Definition Classes
    HttpExecutor
    Annotations
    @deprecated
    Deprecated

    Use x[T](hand: Handler[T]) instead. Construct a Handler if needed.

Inherited from Future

Inherited from Safety

Inherited from BlockingHttp

Inherited from BlockingCallback

Inherited from HttpExecutor

Inherited from RequestLogging

Inherited from AnyRef

Inherited from Any