Object

play.core.server.common

ServerResultUtils

Related Doc: package common

Permalink

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
Visibility
  1. Public
  2. All

Type Members

  1. sealed trait ConnectionHeader extends AnyRef

    Permalink

    The connection header logic to use for the result.

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

    Permalink

    No Connection header should be sent.

    No Connection header should be sent. Used on an HTTP 1.0 connection where the default behavior is to close the connection, or when the response already has a Connection: close header.

  5. object DefaultKeepAlive extends ConnectionHeader with Product with Serializable

    Permalink

    No Connection header should be sent.

    No Connection header should be sent. Used on an HTTP 1.1 connection where the default behavior is to keep the connection open.

  6. object SendClose extends ConnectionHeader with Product with Serializable

    Permalink

    A Connection: close header should be sent.

    A Connection: close header should be sent. Used to force an HTTP 1.1 connection to close.

  7. object SendKeepAlive extends ConnectionHeader with Product with Serializable

    Permalink

    A Connection: keep-alive header should be sent.

    A Connection: keep-alive header should be sent. Used to force an HTTP 1.0 connection to remain open.

  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def cancelEntity(entity: HttpEntity)(implicit mat: Materializer): Any

    Permalink

    Cancel the entity.

    Cancel the entity.

    While theoretically, an Akka streams Source is not supposed to hold resources, in practice, this is very often not the case, for example, the response from an Akka HTTP client may have an associated Source that must be consumed (or cancelled) before the associated connection can be returned to the connection pool.

  10. def cleanFlashCookie(requestHeader: RequestHeader, result: Result): Result

    Permalink

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

  11. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. def determineConnectionHeader(request: RequestHeader, result: Result): ConnectionHeader

    Permalink

    Determine whether the connection should be closed, and what header, if any, should be added to the response.

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

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

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

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

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

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

    Permalink
    Definition Classes
    Any
  19. def mayHaveEntity(status: Int): Boolean

    Permalink

    Whether the given status may have an entity or not.

  20. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  23. def resultConversionWithErrorHandling[R](requestHeader: RequestHeader, result: Result, errorHandler: HttpErrorHandler)(resultConverter: (Result) ⇒ Future[R])(fallbackResponse: ⇒ R): Future[R]

    Permalink

    Handles result conversion in a safe way.

    Handles result conversion in a safe way.

    1. Tries to convert the Result. 2. If there's an error, calls the HttpErrorHandler to get a new Result, then converts that. 3. If there's an error with *that* Result, uses the DefaultHttpErrorHandler to get another Result, then converts that. 4. Hopefully there are no more errors. :) 5. If calling an HttpErrorHandler throws an exception, then a fallback response is returned, without an conversion.

  24. def splitSetCookieHeaders(headers: Map[String, String]): Iterable[(String, String)]

    Permalink

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  27. def validateResult(request: RequestHeader, result: Result, httpErrorHandler: HttpErrorHandler)(implicit mat: Materializer): Future[Result]

    Permalink

    Validate the result.

    Validate the result.

    Returns the validated result, which may be an error result if validation failed.

  28. final def wait(): Unit

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped