Class: UWSRequest
Defined in: service-core/src/http/uWS/Adapters.ts:82
Adapts a uWS HttpRequest to the framework-agnostic HttpRequest interface.
IMPORTANT: uWS HttpRequest is stack-allocated and only valid during the synchronous portion of
the handler. All request data MUST be captured in the constructor before any await.
Implements
Indexable
[
key:string]:any
Allow arbitrary per-request properties (websocket, wsHandled, etc.)
Constructors
Constructor
new UWSRequest(
uwsReq,remoteAddress?):UWSRequest
Defined in: service-core/src/http/uWS/Adapters.ts:100
Parameters
uwsReq
HttpRequest
remoteAddress?
string
Returns
UWSRequest
Properties
authPayload?
optionalauthPayload?:any
Defined in: service-core/src/http/uWS/Adapters.ts:95
Full decoded JWT payload, set by JWT auth middleware.
Implementation of
authToken?
optionalauthToken?:string
Defined in: service-core/src/http/uWS/Adapters.ts:96
Raw JWT token string, set by JWT auth middleware.
Implementation of
body
body:
any=undefined
Defined in: service-core/src/http/uWS/Adapters.ts:89
Implementation of
cookies
readonlycookies:Record<string,string>
Defined in: service-core/src/http/uWS/Adapters.ts:91
Implementation of
headers
readonlyheaders:Record<string,string>
Defined in: service-core/src/http/uWS/Adapters.ts:86
Implementation of
method
readonlymethod:string
Defined in: service-core/src/http/uWS/Adapters.ts:83
Implementation of
params
params:
Record<string,string> ={}
Defined in: service-core/src/http/uWS/Adapters.ts:87
Implementation of
path
readonlypath:string
Defined in: service-core/src/http/uWS/Adapters.ts:85
Implementation of
query
readonlyquery:Record<string,string|string[]>
Defined in: service-core/src/http/uWS/Adapters.ts:88
Implementation of
rawBody?
optionalrawBody?:Buffer<ArrayBufferLike>
Defined in: service-core/src/http/uWS/Adapters.ts:90
Implementation of
signedCookies
readonlysignedCookies:Record<string,string> ={}
Defined in: service-core/src/http/uWS/Adapters.ts:92
Implementation of
socket
readonlysocket:object
Defined in: service-core/src/http/uWS/Adapters.ts:93
Minimal socket interface; populated with remote address for IP extraction.
remoteAddress?
optionalremoteAddress?:string
Implementation of
url
readonlyurl:string
Defined in: service-core/src/http/uWS/Adapters.ts:84
Implementation of
user?
optionaluser?:any
Defined in: service-core/src/http/uWS/Adapters.ts:94
Set by JWT auth middleware after successful token verification.