Packages

trait WebSocketUpgradeResponse extends AnyRef

Represents an upgrade response for a WebSocket upgrade request. Can either be valid, in which case the chosenSubprotocol method is valid, or if invalid, the invalidationReason method can be used to find out why the upgrade failed.

Source
WebSocketUpgradeResponse.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. WebSocketUpgradeResponse
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def chosenSubprotocol: Optional[String]

    If valid, returns Some(subprotocol) (if any was requested), or None if none was chosen or offered.

  2. abstract def invalidationReason: String

    If invalid, the reason why the server's upgrade response could not be accepted.

  3. abstract def isValid: Boolean
  4. abstract def response: HttpResponse

    Returns the response object as received from the server for further inspection.