Class/Object

spinoco.fs2.http

HttpResponse

Related Docs: object HttpResponse | package http

Permalink

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])

    Permalink

    header

    Header of the response

    body

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

Type Members

  1. type Self = HttpResponse[F]

    Permalink
    Definition Classes
    HttpResponseHttpRequestOrResponse

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    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)

    Permalink
    Implicit information
    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

    Permalink
    Definition Classes
    AnyRef → Any
  6. def appendHeader(header: HttpHeader, headers: HttpHeader*): Self

    Permalink

    appends supplied headers *

    appends supplied headers *

    Definition Classes
    HttpRequestOrResponse
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. val body: Stream[F, Byte]

    Permalink

    Body of the response.

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

    Definition Classes
    HttpResponseHttpRequestOrResponse
  9. def bodyAs[A](implicit D: BodyDecoder[A], F: Catchable[F]): F[Attempt[A]]

    Permalink

    Decodes body with supplied decoder of A *

    Decodes body with supplied decoder of A *

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

    Permalink

    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]]

    Permalink

    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

    Permalink

    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]

    Permalink

    gets body size, if one specified *

    gets body size, if one specified *

    Definition Classes
    HttpRequestOrResponse
  14. def chunkedEncoding: Self

    Permalink

    configures encoding as chunked *

    configures encoding as chunked *

    Definition Classes
    HttpRequestOrResponse
  15. def clone(): AnyRef

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

    Permalink

    gets ContentType, if one specififed *

    gets ContentType, if one specififed *

    Definition Classes
    HttpRequestOrResponse
  17. def ensuring(cond: (HttpResponse[F]) ⇒ Boolean, msg: ⇒ Any): HttpResponse[F]

    Permalink
    Implicit information
    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]

    Permalink
    Implicit information
    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]

    Permalink
    Implicit information
    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]

    Permalink
    Implicit information
    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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  23. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    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[_]

    Permalink
    Definition Classes
    AnyRef → Any
  25. val header: HttpResponseHeader

    Permalink

    Header of the response

  26. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  27. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  30. def sseBody[A](in: Stream[F, A])(implicit E: SSEEncoder[A]): Self

    Permalink

    encodes supplied stream of A as SSE stream in body *

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

    Permalink
    Definition Classes
    AnyRef
  32. def updateBody(body: Stream[F, Byte]): Self

    Permalink
    Attributes
    protected
    Definition Classes
    HttpResponseHttpRequestOrResponse
  33. def updateHeaders(headers: List[HttpHeader]): Self

    Permalink
    Attributes
    protected
    Definition Classes
    HttpResponseHttpRequestOrResponse
  34. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. def withBody[A](a: A)(implicit W: BodyEncoder[A]): Self

    Permalink

    encodes body A given BodyEncoder exists *

    encodes body A given BodyEncoder exists *

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

    Permalink

    sets body size to supplied value *

    sets body size to supplied value *

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

    Permalink

    updates content type to one specified *

    updates content type to one specified *

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

    Permalink

    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

    Permalink
    Definition Classes
    HttpRequestOrResponse
  42. def withStreamBody[A](body: Stream[F, A])(implicit E: StreamBodyEncoder[F, A]): Self

    Permalink

    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

    Permalink

    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

    Permalink

    encodes body as utf8 string *

    encodes body as utf8 string *

    Definition Classes
    HttpRequestOrResponse
  45. def [B](y: B): (HttpResponse[F], B)

    Permalink
    Implicit information
    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