Scoop API

scoop:scoop.http:0.1.0

WebSocketServerResponse

class WebSocketServerResponse

source · line 4
public
public class WebSocketServerResponse internal constructor(
    /** The generated HTTP/1.1 101 response, including extra application fields. */
    public val head: HttpResponseHead,
    /** The selected protocol and compression settings for the established session. */
    public val negotiation: WebSocketNegotiation
)

A generated server upgrade response and the negotiation already checked while constructing it.

property head

source · line 6
public
public val head: HttpResponseHead

get: public read-only

The generated HTTP/1.1 101 response, including extra application fields.

property negotiation

source · line 8
public
public val negotiation: WebSocketNegotiation

get: public read-only

The selected protocol and compression settings for the established session.