Class/Object

spray.http

HttpData

Related Docs: object HttpData | package http

Permalink

sealed abstract class HttpData extends AnyRef

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. HttpData
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def +:(other: HttpData): HttpData

    Permalink

    Efficiently prepends this instance with another HttpData instance to possibly form a compound instance.

    Efficiently prepends this instance with another HttpData instance to possibly form a compound instance. No data need to be copied around to do this.

  2. abstract def copyToArray(xs: Array[Byte], sourceOffset: Long = 0, targetOffset: Int = 0, span: Int = length.toInt): Unit

    Permalink

    Extracts span bytes from this instance starting at sourceOffset and copies them to the xs starting at targetOffset.

    Extracts span bytes from this instance starting at sourceOffset and copies them to the xs starting at targetOffset. If span is larger than the number of bytes available in this instance after the sourceOffset or if xs has less space available after targetOffset the number of bytes copied is decreased accordingly (i.e. it is not an error to specify a span that is too large).

  3. abstract def length: Long

    Permalink

    Returns the number of bytes contained in this instance.

  4. abstract def slice(offset: Long = 0, span: Long = length): HttpData

    Permalink

    Returns a slice of this instance as an HttpData.

  5. abstract def sliceBytes(offset: Long = 0, span: Int = length.toInt): ByteString

    Permalink

    Returns a slice of this instance's content as a ByteString.

    Returns a slice of this instance's content as a ByteString.

    CAUTION: Since this instance might point to bytes contained in an off-memory file this method might cause the loading of a large amount of data into the JVM heap (up to 2 GB!).

  6. abstract def toByteArray: Array[Byte]

    Permalink

    Copies the contents of this instance into a new byte array.

    Copies the contents of this instance into a new byte array.

    CAUTION: Since this instance might point to bytes contained in an off-memory file this method might cause the loading of a large amount of data into the JVM heap (up to 2 GB!). If this instance is a FileBytes instance containing more than 2GB of data the method will throw an IllegalArgumentException.

  7. abstract def toByteString: ByteString

    Permalink

    Same as toByteArray but returning a ByteString instead.

    Same as toByteArray but returning a ByteString instead. More efficient if this instance is a Bytes instance since no data will have to be copied and the ByteString will not have to be newly created.

    CAUTION: Since this instance might point to bytes contained in an off-memory file this method might cause the loading of a large amount of data into the JVM heap (up to 2 GB!). If this instance is a FileBytes instance containing more than 2GB of data the method will throw an IllegalArgumentException.

  8. abstract def toChunkStream(maxChunkSize: Long): Stream[HttpData]

    Permalink

    Returns the contents of this instance as a Stream[HttpData] with each chunk not being larger than the given maxChunkSize.

Concrete 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 def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def asString(charset: Charset): String

    Permalink

    Returns the contents of this instance as a string.

    Returns the contents of this instance as a string.

    CAUTION: Since this instance might point to bytes contained in an off-memory file this method might cause the loading of a large amount of data into the JVM heap (up to 2 GB!). If this instance is a FileBytes instance containing more than 2GB of data the method will throw an IllegalArgumentException.

  6. def asString(charset: HttpCharset): String

    Permalink

    Returns the contents of this instance as a string.

    Returns the contents of this instance as a string.

    CAUTION: Since this instance might point to bytes contained in an off-memory file this method might cause the loading of a large amount of data into the JVM heap (up to 2 GB!). If this instance is a FileBytes instance containing more than 2GB of data the method will throw an IllegalArgumentException.

  7. def asString: String

    Permalink

    Returns the contents of this instance as a string (using UTF-8 encoding).

    Returns the contents of this instance as a string (using UTF-8 encoding).

    CAUTION: Since this instance might point to bytes contained in an off-memory file this method might cause the loading of a large amount of data into the JVM heap (up to 2 GB!). If this instance is a FileBytes instance containing more than 2GB of data the method will throw an IllegalArgumentException.

  8. def clone(): AnyRef

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  13. def hasFileBytes: Boolean

    Permalink

    Determines whether this instance is or contains data that are not already present in the JVM heap (i.e.

    Determines whether this instance is or contains data that are not already present in the JVM heap (i.e. instance of HttpData.FileBytes).

  14. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  15. def isEmpty: Boolean

    Permalink

    Determines whether this instance is identical to HttpData.Empty.

  16. final def isInstanceOf[T0]: Boolean

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

    Permalink
    Definition Classes
    AnyRef
  18. def nonEmpty: Boolean

    Permalink

    Determines whether this instance is different from HttpData.Empty.

  19. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped