cc.spray.can

HttpConnection

trait HttpConnection extends AnyRef

An instance of this trait represents an HTTP connection to a specific host and port. It is returned by the HttpClient actor as a reply to a Connect message.

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

Abstract Value Members

  1. def close (): Unit

    Triggers the closing of the connection.

    Triggers the closing of the connection.

    Attributes
    abstract
  2. def send (request: HttpRequest): Future[HttpResponse]

    Sends the given request and delivers its reponse as a Future.

    Sends the given request and delivers its reponse as a Future. If the response is chunked the message entities are buffered and assembled into an HttpResponse by an automatically started DefaultReceiverActor before delivery. If the configured maximum content length is exceeded during buffering the Future will be completed with a respective HttpClientException.

    Attributes
    abstract
  3. def sendAndReceive (request: HttpRequest, receiver: ActorRef, context: Option[Any] = None): Unit

    Sends the given request and delivers its response (parts) to the given receiver actor.

    Sends the given request and delivers its response (parts) to the given receiver actor. If the response is chunked the individual response parts are delivered to the receiver actor one by one, directly upon arrival, as MessageChunk and ChunkedResponseEnd messages. If a context object is given all messages to the receiver actor will be a Tuple2[<message>, <context>]. This way, you can establish the relationship between outgoing requests and incoming responses with any custom marker object. All potentially occuring errors are delivered to the receiver actor as HttpClientException messages.

    Attributes
    abstract
  4. def startChunkedRequest (request: HttpRequest): ChunkedRequester

    Sends the given HttpRequest as the start of a chunked request.

    Sends the given HttpRequest as the start of a chunked request. If the given request has a non-empty body this body will be send immediately after the HTTP headers as the first chunk. The returned ChunkedRequester allows for the sending of all subsequent chunks as well as the finalization of the request.

    Attributes
    abstract

Concrete 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 clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  8. def eq (arg0: AnyRef): Boolean

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

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

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

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

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

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

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

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

    Attributes
    final
    Definition Classes
    AnyRef
  17. def synchronized [T0] (arg0: ⇒ T0): T0

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

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

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any