Class: UWSRequest
Defined in: service-core/src/http/uWS/Adapters.ts:111
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:129
Parameters
uwsReq
HttpRequest
remoteAddress?
string
Returns
UWSRequest
Properties
authPayload?
optionalauthPayload?:any
Defined in: service-core/src/http/uWS/Adapters.ts:124
Full decoded JWT payload, set by JWT auth middleware.
Implementation of
authToken?
optionalauthToken?:string
Defined in: service-core/src/http/uWS/Adapters.ts:125
Raw JWT token string, set by JWT auth middleware.
Implementation of
body
body:
any=undefined
Defined in: service-core/src/http/uWS/Adapters.ts:118
Implementation of
cookies
readonlycookies:Record<string,string>
Defined in: service-core/src/http/uWS/Adapters.ts:120
Implementation of
headers
readonlyheaders:Record<string,string>
Defined in: service-core/src/http/uWS/Adapters.ts:115
Implementation of
method
readonlymethod:string
Defined in: service-core/src/http/uWS/Adapters.ts:112
Implementation of
params
params:
Record<string,string> ={}
Defined in: service-core/src/http/uWS/Adapters.ts:116
Implementation of
path
readonlypath:string
Defined in: service-core/src/http/uWS/Adapters.ts:114
Implementation of
query
readonlyquery:Record<string,string|string[]>
Defined in: service-core/src/http/uWS/Adapters.ts:117
Implementation of
rawBody?
optionalrawBody?:Buffer<ArrayBufferLike>
Defined in: service-core/src/http/uWS/Adapters.ts:119
Implementation of
signedCookies
readonlysignedCookies:Record<string,string> ={}
Defined in: service-core/src/http/uWS/Adapters.ts:121
Implementation of
socket
readonlysocket:object
Defined in: service-core/src/http/uWS/Adapters.ts:122
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:113
Implementation of
user?
optionaluser?:any
Defined in: service-core/src/http/uWS/Adapters.ts:123
Set by JWT auth middleware after successful token verification.