Packages

abstract class WebSocketRequest extends AnyRef

Represents a WebSocket request. Use WebSocketRequest.create to create a request for a target URI and then use addHeader or requestSubprotocol to set optional details.

Source
WebSocketRequest.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. WebSocketRequest
  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

Instance Constructors

  1. new WebSocketRequest()

Abstract Value Members

  1. abstract def addHeader(header: HttpHeader): WebSocketRequest

    Return a copy of this request that contains the given additional header.

  2. abstract def asScala: scaladsl.model.ws.WebSocketRequest
  3. abstract def requestSubprotocol(subprotocol: String): WebSocketRequest

    Return a copy of this request that will require that the server uses the given WebSocket subprotocol.