Interface: IIncomingEvent
Interface: IIncomingEvent
Represents an incoming event. Generic interface for incoming events. Standalone interface for incoming events.
Extends
IncomingEvent
Properties
body?
optional body: unknown;
decodedPathname?
optional decodedPathname: string;
getUri()
getUri: (withDomain) => undefined | string;
Parameters
withDomain
boolean
Returns
undefined
| string
host
host: string;
isMethod()
isMethod: (method) => boolean;
Parameters
method
Returns
boolean
isSecure?
readonly optional isSecure: boolean;
method
method: HttpMethod;
pathname
pathname: string;
query?
optional query: URLSearchParams;
setRouteResolver()
setRouteResolver: <U, V>(resolver) => void;
Type Parameters
U
U
extends IIncomingEvent
V
V
= unknown
Parameters
resolver
() => Route
<U
, V
>
Returns
void
url
url: URL;