cc.spray.can.HighLevelHttpClient

HttpDialog

class HttpDialog [A] extends AnyRef

An HttpDialog encapsulates an exchange of HTTP messages over the course of one connection. It provides a fluent API for constructing a "chain" of scheduled tasks that define what to do over the course of the dialog.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. HttpDialog
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new HttpDialog (connectionF: Future[HttpConnection], resultF: Future[A])

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

    Attributes
    final
    Definition Classes
    Any
  7. def awaitResponse : HttpDialog[A]

    Delays all subsequent send tasks until all previously pending responses have come in.

  8. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  9. def end : Future[A]

    Schedules a proper closing of the HttpDialogs connection.

    Schedules a proper closing of the HttpDialogs connection. The result is of type Future[HttpResponse] if the dialog consists only of a single send (with potentially following reply tasks), of type Future[Seq[HttpResponse]] if the dialog involves more than one request and of type Future[Unit] if the dialog does not contain any send.

  10. def eq (arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  12. def finalize (): Unit

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

    Attributes
    final
    Definition Classes
    AnyRef → Any
  14. def hashCode (): Int

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

    Attributes
    final
    Definition Classes
    Any
  16. def ne (arg0: AnyRef): Boolean

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

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

    Attributes
    final
    Definition Classes
    AnyRef
  19. def reply (f: (HttpResponse) ⇒ HttpRequest)(implicit ev: <:<[A, HttpResponse]): HttpDialog[HttpResponse]

    Chains a simple responder function into the task chain.

    Chains a simple responder function into the task chain. Only legal after exactly one preceding send task. reply can be repeated, so the task chain send(...).reply(...).reply(...).reply(...) is legal.

  20. def send [B] (request: HttpRequest)(implicit concat: (A, Future[HttpResponse]) ⇒ Future[B]): HttpDialog[B]

    Chains the sending of the given HttpRequest into the dialog.

    Chains the sending of the given HttpRequest into the dialog. The request will be sent as soon as the connection has been established and any awaitResponse and waitIdle tasks potentially chained in before this send have been completed. Several send tasks not separated by awaitResponse/waitIdle will cause the corresponding requests to be send in a pipelined fashion, one right after another.

  21. def sendChunked [B] (request: HttpRequest)(chunker: (ChunkedRequester) ⇒ Future[HttpResponse])(implicit concat: (A, Future[HttpResponse]) ⇒ Future[B]): HttpDialog[B]

    Like send, but with a chunked request.

    Like send, but with a chunked request. If the given HttpRequest contains a body this body will be used as the first chunk. Subsequent chunks as well as the closing of the stream are generated by the "chunker" function.

  22. def synchronized [T0] (arg0: ⇒ T0): T0

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

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

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  27. def waitIdle (duration: Duration): HttpDialog[A]

    Delays all subsequent send tasks by the given time duration.

Inherited from AnyRef

Inherited from Any