Class: RequestContext

RequestContext

Context object that provides informations about a running request.

Constructor

new RequestContext(packet)

Parameters:
Name Type Description
packet Stormancer.Packet

The Packet on which we create the RequestContext.

Source:

Methods

complete()

Completes the request.

Source:

error(data)

Error on the request.

Parameters:
Name Type Description
data Uint8Array

The received data error.

Source:

send(data)

Sends a partial response to the client through the request channel

Parameters:
Name Type Description
data Uint8Array

The data to send.

Source: