play.core.server.common

ServerResultUtils

object ServerResultUtils

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

Type Members

  1. final case class CannotStream(reason: String, alternativeResult: Result) extends ResultStreaming with Product with Serializable

  2. final case class PerformChunkedTransferEncoding(enum: Enumerator[Array[Byte]]) extends ResultStreaming with Product with Serializable

  3. sealed trait ResultStreaming extends AnyRef

  4. final case class StreamWithClose(enum: Enumerator[Array[Byte]]) extends ResultStreaming with Product with Serializable

  5. final case class StreamWithKnownLength(enum: Enumerator[Array[Byte]]) extends ResultStreaming with Product with Serializable

  6. final case class StreamWithStrictBody(body: Array[Byte]) extends ResultStreaming with Product with Serializable

  7. final case class UseExistingTransferEncoding(transferEncodedEnum: Enumerator[Array[Byte]]) extends ResultStreaming with Product with Serializable

Value Members

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

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Definition Classes
    AnyRef → Any
  4. object StreamWithNoBody extends ResultStreaming with Product with Serializable

  5. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  6. def cleanFlashCookie(requestHeader: RequestHeader, result: Result): Result

  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def determineResultStreaming(result: Result, isHttp10: Boolean): Future[ResultStreaming]

    Analyze the Result and determine how best to send it.

    Analyze the Result and determine how best to send it. This may involve looking at headers, buffering the enumerator, etc. The returned value will indicate how to stream the result and will provide an Enumerator or Array with the result body that should be streamed. CannotStream will be returned if the Result cannot be streamed to the given client. This can happen if a result requires Transfer-Encoding but the client uses HTTP 1.0. It can also happen if there is an error in the Result headers.

  9. final def eq(arg0: AnyRef): Boolean

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

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

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

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

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

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

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

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

    Definition Classes
    AnyRef
  18. def readAheadOne[A](enum: Enumerator[A]): Future[Either[Option[A], Enumerator[A]]]

    Start reading an Enumerator and see if it is only zero or one elements long.

    Start reading an Enumerator and see if it is only zero or one elements long. - If zero-length, return Left(None). - If one-length, return the element in Left(Some(el)) - If more than one element long, return Right(enumerator) where enumerator is an Enumerator that contains *all* the input. Any already-read elements will still be included in this Enumerator.

  19. def splitHeadersIntoSeq(headers: Map[String, String]): Seq[(String, String)]

    Given a map of headers, split it into a sequence of individual headers.

    Given a map of headers, split it into a sequence of individual headers. Most headers map into a single pair in the new sequence. The exception is the Set-Cookie header which we split into a pair for each cookie it contains. This allows us to work around issues with clients that can't handle combined headers. (Also RFC6265 says multiple headers shouldn't be folded together, which Play's API unfortunately does.)

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

    Definition Classes
    AnyRef
  21. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped