uk.co.bigbeeconsultants.http.request

StreamRequestBody

final class StreamRequestBody extends RequestBody

Provides a request body based on an arbitrary function that writes data to an output stream, without any inherent caching of the body data. It is possible to obtain a cached version of this body; a BinaryRequestBody will be returned. It is normally more convenient to construct instances via RequestBody.

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

Instance Constructors

  1. new StreamRequestBody(copyToFn: (OutputStream) ⇒ Unit, contentType: MediaType)

    copyToFn

    the writer function

    contentType

    the media type

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. def asBytes: Nothing

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

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

    Definition Classes
    Any
  8. def asString: String

    Gets a string representation of the body, if possible.

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

    Definition Classes
    RequestBody
  9. def cachedBody: RequestBody

    Converts this body to a new BinaryRequestBody.

    Converts this body to a new BinaryRequestBody.

    Definition Classes
    StreamRequestBodyRequestBody
  10. def canEqual(other: Any): Boolean

    Definition Classes
    RequestBody
  11. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  12. val contentType: MediaType

    the media type

    the media type

    Definition Classes
    StreamRequestBodyRequestBody
  13. def copyTo(outputStream: OutputStream): Unit

    Gets the function that consumes this request body.

    Gets the function that consumes this request body.

    Definition Classes
    StreamRequestBodyRequestBody
  14. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  15. 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
    StreamRequestBodyRequestBody → AnyRef → Any
  16. def finalize(): Unit

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

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

    Definition Classes
    StreamRequestBodyRequestBody → AnyRef → Any
  19. final def isInstanceOf[T0]: Boolean

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

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

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

    Definition Classes
    AnyRef
  23. val objectHashCode: Int

    Attributes
    protected
    Definition Classes
    RequestBody
  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  25. final def toShortString: String

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

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

    Definition Classes
    RequestBody
  26. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from RequestBody

Inherited from AnyRef

Inherited from Any

Ungrouped