play.core.server.common

ServerResultUtils

object ServerResultUtils

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. sealed trait ConnectionHeader extends AnyRef

    The connection header logic to use for the result.

  2. final case class InvalidResult(reason: String, alternativeResult: Result) extends Product with Serializable

    Used to indicate that a result can't be streamed.

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

    A stream where the response should be chunk encoded.

  4. sealed trait ResultStreaming extends AnyRef

    Indicates the streaming strategy to use for returning the response.

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

    Used for responses that have unknown length and should be delimited by the connection closing.

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

    A stream with a known length where the Content-Length header can be set.

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

    A stream with bytes that are already entirely known.

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

    A stream where the response has already been encoded by the user, e.

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. object DefaultClose extends ConnectionHeader with Product with Serializable

    No Connection header should be sent.

  7. object DefaultKeepAlive extends ConnectionHeader with Product with Serializable

    No Connection header should be sent.

  8. object SendClose extends ConnectionHeader with Product with Serializable

    A Connection: close header should be sent.

  9. object SendKeepAlive extends ConnectionHeader with Product with Serializable

    A Connection: keep-alive header should be sent.

  10. object StreamWithNoBody extends ResultStreaming with Product with Serializable

    Used for responses that may not contain a body, e.

  11. final def asInstanceOf[T0]: T0

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

    Update the result's Set-Cookie header so that it removes any Flash cookies we received in the incoming request.

  13. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  14. def determineResultStreaming(requestHeader: RequestHeader, result: Result): Future[Either[InvalidResult, (ResultStreaming, ConnectionHeader)]]

    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.

    The ConnectionHeader returned for a successful result will indicate how the header should be set in the response header.

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

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

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

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

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

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

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

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

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

    Definition Classes
    AnyRef
  24. 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.

  25. def splitSetCookieHeaders(headers: Map[String, String]): Iterable[(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.)

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

    Definition Classes
    AnyRef
  27. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped