Trait

spinoco.fs2.http

HttpRequestOrResponse

Related Doc: package http

Permalink

sealed trait HttpRequestOrResponse[F[_]] extends AnyRef

common request/response methods *

Self Type
HttpRequestOrResponse[F]
Source
HttpRequestOrResponse.scala
Linear Supertypes
AnyRef, Any
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]

    Permalink

Abstract Value Members

  1. abstract def body: Stream[F, Byte]

    Permalink
    Attributes
    protected
  2. abstract def updateBody(body: Stream[F, Byte]): Self

    Permalink
    Attributes
    protected
  3. abstract def updateHeaders(headers: List[HttpHeader]): Self

    Permalink
    Attributes
    protected

Concrete 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 HttpRequestOrResponse[F] to any2stringadd[HttpRequestOrResponse[F]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (HttpRequestOrResponse[F], B)

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

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

    Permalink

    appends supplied headers *

  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def bodyAs[A](implicit D: BodyDecoder[A], F: Catchable[F]): F[Attempt[A]]

    Permalink

    Decodes body with supplied decoder of A *

  9. def bodyAsByteVectorStream: Stream[F, ByteVector]

    Permalink

    gets body as stream of byteVectors *

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

    Permalink

    decodes body as string with encoding supplied in ContentType *

  11. lazy val bodyIsChunked: Boolean

    Permalink

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

  12. def bodySize: Option[Long]

    Permalink

    gets body size, if one specified *

  13. def chunkedEncoding: Self

    Permalink

    configures encoding as chunked *

  14. def clone(): AnyRef

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

    Permalink

    gets ContentType, if one specififed *

  16. def ensuring(cond: (HttpRequestOrResponse[F]) ⇒ Boolean, msg: ⇒ Any): HttpRequestOrResponse[F]

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  21. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  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 HttpRequestOrResponse[F] to StringFormat[HttpRequestOrResponse[F]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  24. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  25. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  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. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  31. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  32. final def wait(): Unit

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

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

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

    Permalink

    encodes body A given BodyEncoder exists *

  36. def withBodySize(sz: Long): Self

    Permalink

    sets body size to supplied value *

  37. def withContentType(ct: ContentType): Self

    Permalink

    updates content type to one specified *

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

    Permalink

    appends supplied headers.

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

  39. def withHeaders[A](f: (List[HttpHeader]) ⇒ A): A

    Permalink
  40. 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) *

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

    Permalink

    like stream except one A that is streamed lazily *

  42. def withUtf8Body(s: String): Self

    Permalink

    encodes body as utf8 string *

  43. def [B](y: B): (HttpRequestOrResponse[F], B)

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