Documentation
Interfaces
use/uWebSockets.PersistedRequest

Interface: PersistedRequest

use/uWebSockets.PersistedRequest

The initial HTTP upgrade request before the actual socket and connection is established.

uWS’s request is stack allocated and cannot be accessed from outside of the internal upgrade; therefore, the persisted request holds relevant values extracted from the uWS’s request while it is accessible.

Properties

headers

headers: IncomingHttpHeaders

Defined in

src/use/uWebSockets.ts:54


method

method: string

Defined in

src/use/uWebSockets.ts:50


query

query: string

The raw query string (after the ? sign) or empty string.

Defined in

src/use/uWebSockets.ts:53


url

url: string

Defined in

src/use/uWebSockets.ts:51