Packages

final case class HttpResponse[F[_]](header: HttpResponseHeader, body: Stream[F, Byte]) extends HttpRequestOrResponse[F] with Product with Serializable

Model of Http Response

header

Header of the response

body

Body of the response. If empty, no body will be emitted.

Self Type
HttpResponse[F]
Source
HttpRequestOrResponse.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. HttpResponse
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. HttpRequestOrResponse
  7. AnyRef
  8. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new HttpResponse(header: HttpResponseHeader, body: Stream[F, Byte])

    header

    Header of the response

    body

    Body of the response. If empty, no body will be emitted.

Type Members

  1. type Self = HttpResponse[F]
    Definition Classes
    HttpResponseHttpRequestOrResponse

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from HttpResponse[F] to any2stringadd[HttpResponse[F]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (HttpResponse[F], B)
    Implicit
    This member is added by an implicit conversion from HttpResponse[F] to ArrowAssoc[HttpResponse[F]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. def appendHeader(header: HttpHeader, headers: HttpHeader*): Self

    appends supplied headers *

    appends supplied headers *

    Definition Classes
    HttpRequestOrResponse
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. val body: Stream[F, Byte]
    Definition Classes
    HttpResponseHttpRequestOrResponse
  9. def bodyAs[A](implicit D: BodyDecoder[A], F: Catchable[F]): F[Attempt[A]]

    Decodes body with supplied decoder of A *

    Decodes body with supplied decoder of A *

    Definition Classes
    HttpRequestOrResponse
  10. def bodyAsByteVectorStream: Stream[F, ByteVector]

    gets body as stream of byteVectors *

    gets body as stream of byteVectors *

    Definition Classes
    HttpRequestOrResponse
  11. def bodyAsString(implicit F: Catchable[F]): F[Attempt[String]]

    decodes body as string with encoding supplied in ContentType *

    decodes body as string with encoding supplied in ContentType *

    Definition Classes
    HttpRequestOrResponse
  12. lazy val bodyIsChunked: Boolean

    yields to true, if body of this request shall be chunked *

    yields to true, if body of this request shall be chunked *

    Definition Classes
    HttpRequestOrResponse
  13. def bodySize: Option[Long]

    gets body size, if one specified *

    gets body size, if one specified *

    Definition Classes
    HttpRequestOrResponse
  14. def chunkedEncoding: Self

    configures encoding as chunked *

    configures encoding as chunked *

    Definition Classes
    HttpRequestOrResponse
  15. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  16. def contentType: Option[ContentType]

    gets ContentType, if one specififed *

    gets ContentType, if one specififed *

    Definition Classes
    HttpRequestOrResponse
  17. def ensuring(cond: (HttpResponse[F]) ⇒ Boolean, msg: ⇒ Any): HttpResponse[F]
    Implicit
    This member is added by an implicit conversion from HttpResponse[F] to Ensuring[HttpResponse[F]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  18. def ensuring(cond: (HttpResponse[F]) ⇒ Boolean): HttpResponse[F]
    Implicit
    This member is added by an implicit conversion from HttpResponse[F] to Ensuring[HttpResponse[F]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  19. def ensuring(cond: Boolean, msg: ⇒ Any): HttpResponse[F]
    Implicit
    This member is added by an implicit conversion from HttpResponse[F] to Ensuring[HttpResponse[F]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  20. def ensuring(cond: Boolean): HttpResponse[F]
    Implicit
    This member is added by an implicit conversion from HttpResponse[F] to Ensuring[HttpResponse[F]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  21. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  23. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from HttpResponse[F] to StringFormat[HttpResponse[F]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  24. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  25. val header: HttpResponseHeader
  26. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  27. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  28. final def notify(): Unit
    Definition Classes
    AnyRef
  29. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  30. def sseBody[A](in: Stream[F, A])(implicit E: SSEEncoder[A]): Self

    encodes supplied stream of A as SSE stream in body *

  31. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  32. def updateBody(body: Stream[F, Byte]): Self
    Attributes
    protected
    Definition Classes
    HttpResponseHttpRequestOrResponse
  33. def updateHeaders(headers: List[HttpHeader]): Self
    Attributes
    protected
    Definition Classes
    HttpResponseHttpRequestOrResponse
  34. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. def withBody[A](a: A)(implicit W: BodyEncoder[A]): Self

    encodes body A given BodyEncoder exists *

    encodes body A given BodyEncoder exists *

    Definition Classes
    HttpRequestOrResponse
  38. def withBodySize(sz: Long): Self

    sets body size to supplied value *

    sets body size to supplied value *

    Definition Classes
    HttpRequestOrResponse
  39. def withContentType(ct: ContentType): Self

    updates content type to one specified *

    updates content type to one specified *

    Definition Classes
    HttpRequestOrResponse
  40. def withHeader(header: HttpHeader, headers: HttpHeader*): Self

    appends supplied headers.

    appends supplied headers. Unlike appendHeader headers are removed if they already exists *

    Definition Classes
    HttpRequestOrResponse
  41. def withHeaders[A](f: (List[HttpHeader]) ⇒ A): A
    Definition Classes
    HttpRequestOrResponse
  42. def withStreamBody[A](body: Stream[F, A])(implicit E: StreamBodyEncoder[F, A]): Self

    allows to stream arbitrary sized stream of A to remote party (i.e.

    allows to stream arbitrary sized stream of A to remote party (i.e. upload) *

    Definition Classes
    HttpRequestOrResponse
  43. def withStreamBody1[A](a: ⇒ A)(implicit E: StreamBodyEncoder[F, A]): Self

    like stream except one A that is streamed lazily *

    like stream except one A that is streamed lazily *

    Definition Classes
    HttpRequestOrResponse
  44. def withUtf8Body(s: String): Self

    encodes body as utf8 string *

    encodes body as utf8 string *

    Definition Classes
    HttpRequestOrResponse
  45. def [B](y: B): (HttpResponse[F], B)
    Implicit
    This member is added by an implicit conversion from HttpResponse[F] to ArrowAssoc[HttpResponse[F]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from HttpRequestOrResponse[F]

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from HttpResponse[F] to any2stringadd[HttpResponse[F]]

Inherited by implicit conversion StringFormat from HttpResponse[F] to StringFormat[HttpResponse[F]]

Inherited by implicit conversion Ensuring from HttpResponse[F] to Ensuring[HttpResponse[F]]

Inherited by implicit conversion ArrowAssoc from HttpResponse[F] to ArrowAssoc[HttpResponse[F]]

Ungrouped