Class

spray.http

HttpResponse

Related Doc: package http

Permalink

case class HttpResponse(status: StatusCode = StatusCodes.OK, entity: HttpEntity = HttpEntity.Empty, headers: List[HttpHeader] = Nil, protocol: HttpProtocol = HttpProtocols.`HTTP/1.1`) extends HttpMessage with HttpResponsePart with Product with Serializable

Immutable HTTP response model.

Linear Supertypes
Serializable, Serializable, Product, Equals, HttpResponsePart, HttpMessage, HttpMessageEnd, HttpMessageStart, HttpMessagePart, HttpMessagePartWrapper, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. HttpResponse
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. HttpResponsePart
  7. HttpMessage
  8. HttpMessageEnd
  9. HttpMessageStart
  10. HttpMessagePart
  11. HttpMessagePartWrapper
  12. AnyRef
  13. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new HttpResponse(status: StatusCode = StatusCodes.OK, entity: HttpEntity = HttpEntity.Empty, headers: List[HttpHeader] = Nil, protocol: HttpProtocol = HttpProtocols.`HTTP/1.1`)

    Permalink

Type Members

  1. type Self = HttpResponse

    Permalink
    Definition Classes
    HttpResponse → HttpMessage

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 ack: None.type

    Permalink
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def asPartStream(maxChunkSize: Long = Long.MaxValue): Stream[HttpMessagePart]

    Permalink

    Returns the message as if it was sent in chunks

    Returns the message as if it was sent in chunks

    Definition Classes
    HttpMessage
  7. def chunkedMessageStart: ChunkedResponseStart

    Permalink

    Returns the start part for this message

    Returns the start part for this message

    Definition Classes
    HttpResponse → HttpMessage
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def connectionCloseExpected: Boolean

    Permalink
    Definition Classes
    HttpMessage
  10. def encoding: HttpEncoding

    Permalink

    The content encoding as specified by the Content-Encoding header.

    The content encoding as specified by the Content-Encoding header. If no Content-Encoding header is present the default value 'identity' is returned.

    Definition Classes
    HttpMessage
  11. val entity: HttpEntity

    Permalink
    Definition Classes
    HttpResponse → HttpMessage
  12. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  15. def header[T <: HttpHeader](implicit arg0: ClassTag[T]): Option[T]

    Permalink
    Definition Classes
    HttpMessage
  16. val headers: List[HttpHeader]

    Permalink
    Definition Classes
    HttpResponse → HttpMessage
  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. def isRequest: Boolean

    Permalink
    Definition Classes
    HttpResponse → HttpMessage
  19. def isResponse: Boolean

    Permalink
    Definition Classes
    HttpResponse → HttpMessage
  20. def mapEntity(f: (HttpEntity) ⇒ HttpEntity): Self

    Permalink
    Definition Classes
    HttpMessage
  21. def mapHeaders(f: (List[HttpHeader]) ⇒ List[HttpHeader]): Self

    Permalink
    Definition Classes
    HttpMessage → HttpMessageStart
  22. def message: HttpResponse

    Permalink
    Definition Classes
    HttpResponse → HttpMessage → HttpMessageStart
  23. def messagePart: HttpMessagePart

    Permalink
  24. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  27. val protocol: HttpProtocol

    Permalink
    Definition Classes
    HttpResponse → HttpMessage
  28. val status: StatusCode

    Permalink
  29. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. def withAck(ack: Any): Confirmed

    Permalink
    Definition Classes
    HttpMessagePart
  34. def withDefaultHeaders(defaultHeaders: List[HttpHeader]): Self

    Permalink
    Definition Classes
    HttpMessage
  35. def withEntity(entity: HttpEntity): Self

    Permalink
    Definition Classes
    HttpResponse → HttpMessage
  36. def withHeaders(headers: List[HttpHeader]): Self

    Permalink
    Definition Classes
    HttpResponse → HttpMessage
  37. def withHeaders(headers: HttpHeader*): Self

    Permalink
    Definition Classes
    HttpMessage
  38. def withHeadersAndEntity(headers: List[HttpHeader], entity: HttpEntity): Self

    Permalink
    Definition Classes
    HttpResponse → HttpMessage

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from HttpResponsePart

Inherited from HttpMessage

Inherited from HttpMessageEnd

Inherited from HttpMessageStart

Inherited from HttpMessagePart

Inherited from HttpMessagePartWrapper

Inherited from AnyRef

Inherited from Any

Ungrouped