uk.co.bigbeeconsultants.http.request

RequestBody

trait RequestBody extends AnyRef

Carries body data on a request. The body data is supplied by a closure using the target HTTP output stream as its parameter, allowing data to be streamed from an arbitrary source in order to minimise memory footprint, if required.

The companion object provides apply methods for common sources of body data.

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. RequestBody
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def asBytes: Array[Byte]

    Gets a byte array representation of the body, if possible.

    Gets a byte array representation of the body, if possible. Some implementations do not provide this.

    Be careful with this array - you *should not* attempt to modify it, even though it is mutable (which it is because otherwise an extra copy step would be needed, which would impair performance, and the array would not be available to the many standard Java APIs that work with such data).

  2. abstract def cachedBody: RequestBody

    Gets a cached version of the body.

    Gets a cached version of the body. The returned instance will provide an implementation of 'asBytes', which is needed during digest authentication for example.

  3. abstract def contentType: MediaType

    Gets the content type.

  4. abstract def copyTo(outputStream: OutputStream): Unit

    Gets the function that consumes this request body.

Concrete Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def asString: String

    Gets a string representation of the body, if possible.

    Gets a string representation of the body, if possible. Otherwise, "..." is returned.

  8. def canEqual(other: Any): Boolean

  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  10. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  11. def equals(other: Any): Boolean

    Equality between two instances is defined in terms of equality of both the byte content and the media type.

    Equality between two instances is defined in terms of equality of both the byte content and the media type.

    other

    another instance, typically of a RequestBody

    returns

    true iff two instances return the same results from asBytes, and they share the same media type, then they are equal.

    Definition Classes
    RequestBody → AnyRef → Any
  12. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  13. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  14. lazy val hashCode: Int

    The hash code is computed from asBytes merged with the hash code from the media type.

    The hash code is computed from asBytes merged with the hash code from the media type.

    Definition Classes
    RequestBody → AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

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

    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  19. val objectHashCode: Int

    Attributes
    protected
  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  21. final def toShortString: String

    Gets the string representation and the content type for diagnostic purposes.

  22. def toString(): String

    Definition Classes
    RequestBody → AnyRef → Any
  23. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any

Ungrouped