Object/Trait

io.udash.rest.raw

HttpBody

Related Docs: trait HttpBody | package raw

Permalink

object HttpBody extends HttpBodyLowPrio

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. HttpBody
  2. HttpBodyLowPrio
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. final case class Binary(bytes: Array[Byte], contentType: String) extends NonEmpty with Product with Serializable

    Permalink

    Represents binary HTTP body.

    Represents binary HTTP body. A body is considered binary if Content-Type does not have charset defined.

  2. sealed trait NonEmpty extends HttpBody

    Permalink

    Non empty body can be either textual or binary.

    Non empty body can be either textual or binary. This is mostly an optimization to avoid unnecessary conversions between strings and byte arrays. Both Binary and Textual can be read as text and as raw bytes.

  3. final case class Textual(content: String, mediaType: String, charset: String) extends NonEmpty with Product with Serializable

    Permalink

    Represents textual HTTP body.

    Represents textual HTTP body. A body is considered textual if Content-Type has charset defined.

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. final val CharsetParamRegex: Regex

    Permalink
  5. object Empty extends HttpBody with Product with Serializable

    Permalink
  6. final val FormType: String("application/x-www-form-urlencoded")

    Permalink
  7. final val JsonType: String("application/json")

    Permalink
  8. final val OctetStreamType: String("application/octet-stream")

    Permalink
  9. final val PlainType: String("text/plain")

    Permalink
  10. final val Utf8Charset: String("utf-8")

    Permalink
  11. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  12. implicit def asRawNotFound[T](implicit forJson: ImplicitNotFound[AsRaw[JsonValue, T]]): ImplicitNotFound[AsRaw[HttpBody, T]]

    Permalink
    Definition Classes
    HttpBodyLowPrio
    Annotations
    @implicitNotFound( ... )
  13. implicit def asRealNotFound[T](implicit forJson: ImplicitNotFound[AsReal[JsonValue, T]]): ImplicitNotFound[AsReal[HttpBody, T]]

    Permalink
    Definition Classes
    HttpBodyLowPrio
    Annotations
    @implicitNotFound( ... )
  14. def binary(bytes: Array[Byte], contentType: String = OctetStreamType): HttpBody

    Permalink
  15. def charsetOf(contentType: String): com.avsystem.commons.Opt[String]

    Permalink
  16. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  17. def createFormBody(values: Mapping[PlainValue]): HttpBody

    Permalink
  18. def createJsonBody(fields: Mapping[JsonValue]): HttpBody

    Permalink
  19. def empty: HttpBody

    Permalink
  20. implicit val emptyBodyForUnit: AsRawReal[HttpBody, Unit]

    Permalink
  21. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  23. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  24. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  25. implicit def httpBodyJsonAsRaw[T](implicit jsonAsRaw: AsRaw[JsonValue, T]): AsRaw[HttpBody, T]

    Permalink
    Definition Classes
    HttpBodyLowPrio
  26. implicit def httpBodyJsonAsReal[T](implicit jsonAsReal: AsReal[JsonValue, T]): AsReal[HttpBody, T]

    Permalink
    Definition Classes
    HttpBodyLowPrio
  27. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  28. def json(json: JsonValue): HttpBody

    Permalink
  29. def mediaTypeOf(contentType: String): String

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  32. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  33. implicit val octetStreamBodyForByteArray: AsRawReal[HttpBody, Array[Byte]]

    Permalink
  34. def parseFormBody(body: HttpBody): Mapping[PlainValue]

    Permalink
  35. def parseJsonBody(body: HttpBody): Mapping[JsonValue]

    Permalink
  36. def plain(content: com.avsystem.commons.OptArg[String] = OptArg.Empty): HttpBody

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

    Permalink
    Definition Classes
    AnyRef
  38. def textual(content: String, mediaType: String = PlainType, charset: String = Utf8Charset): HttpBody

    Permalink
  39. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  40. final def wait(arg0: Long, arg1: Int): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from HttpBodyLowPrio

Inherited from AnyRef

Inherited from Any

Ungrouped