Packages

t

spinoco.fs2.http

HttpRequestOrResponse

sealed trait HttpRequestOrResponse[F[_]] extends AnyRef

common request/response methods *

Self Type
HttpRequestOrResponse[F]
Source
HttpRequestOrResponse.scala
Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. HttpRequestOrResponse
  2. AnyRef
  3. 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

Type Members

  1. abstract type Self <: HttpRequestOrResponse[F]

Abstract Value Members

  1. abstract def body: Stream[F, Byte]
    Attributes
    protected
  2. abstract def updateBody(body: Stream[F, Byte]): Self
    Attributes
    protected
  3. abstract def updateHeaders(headers: List[HttpHeader]): Self
    Attributes
    protected

Concrete 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 HttpRequestOrResponse[F] to any2stringadd[HttpRequestOrResponse[F]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (HttpRequestOrResponse[F], B)
    Implicit
    This member is added by an implicit conversion from HttpRequestOrResponse[F] to ArrowAssoc[HttpRequestOrResponse[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 *

  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def bodyAs[A](implicit D: BodyDecoder[A], F: Sync[F]): F[Attempt[A]]

    Decodes body with supplied decoder of A *

  9. def bodyAsByteVectorStream: Stream[F, ByteVector]

    gets body as stream of byteVectors *

  10. def bodyAsString(implicit F: Sync[F]): F[Attempt[String]]

    decodes body as string with encoding supplied in ContentType *

  11. lazy val bodyIsChunked: Boolean

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

  12. def bodySize: Option[Long]

    gets body size, if one specified *

  13. def chunkedEncoding: Self

    configures encoding as chunked *

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

    gets ContentType, if one specififed *

  16. def ensuring(cond: (HttpRequestOrResponse[F]) ⇒ Boolean, msg: ⇒ Any): HttpRequestOrResponse[F]
    Implicit
    This member is added by an implicit conversion from HttpRequestOrResponse[F] to Ensuring[HttpRequestOrResponse[F]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. def ensuring(cond: (HttpRequestOrResponse[F]) ⇒ Boolean): HttpRequestOrResponse[F]
    Implicit
    This member is added by an implicit conversion from HttpRequestOrResponse[F] to Ensuring[HttpRequestOrResponse[F]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  18. def ensuring(cond: Boolean, msg: ⇒ Any): HttpRequestOrResponse[F]
    Implicit
    This member is added by an implicit conversion from HttpRequestOrResponse[F] to Ensuring[HttpRequestOrResponse[F]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  19. def ensuring(cond: Boolean): HttpRequestOrResponse[F]
    Implicit
    This member is added by an implicit conversion from HttpRequestOrResponse[F] to Ensuring[HttpRequestOrResponse[F]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  20. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  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 HttpRequestOrResponse[F] to StringFormat[HttpRequestOrResponse[F]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  24. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  25. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  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
    Annotations
    @native()
  29. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  30. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  31. def toString(): String
    Definition Classes
    AnyRef → Any
  32. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  35. def withBody[A](a: A)(implicit W: BodyEncoder[A], ev: RaiseThrowable[F]): Self

    encodes body A given BodyEncoder exists *

  36. def withBodySize(sz: Long): Self

    sets body size to supplied value *

  37. def withContentType(ct: ContentType): Self

    updates content type to one specified *

  38. def withHeader(header: HttpHeader, headers: HttpHeader*): Self

    appends supplied headers.

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

  39. def withHeaders[A](f: (List[HttpHeader]) ⇒ A): A
  40. 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) *

  41. def withStreamBody1[A](a: ⇒ A)(implicit E: StreamBodyEncoder[F, A]): Self

    like stream except one A that is streamed lazily *

  42. def withUtf8Body(s: String)(implicit ev: RaiseThrowable[F]): Self

    encodes body as utf8 string *

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

Inherited from AnyRef

Inherited from Any

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

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

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

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

Ungrouped