Properties
Readonly connection
connection: Socket
context
context: FastifyRequestContext<unknown>
Optional cookies
cookies?: {
[key: string]: string;
}
Optional files
files?: any
headers
headers: IncomingHttpHeaders
Readonly hostname
hostname: string
Optional Readonly ips
ips?: string[]
Readonly is404
is404: boolean
log
log: FastifyBaseLogger
Readonly method
method: string
Readonly originalUrl
originalUrl: string
Readonly protocol
protocol: "http" | "https"
Readonly req
req: IncomingMessage
routeConfig
routeConfig: FastifyContextConfig & FastifyRouteConfig
Readonly routeOptions
routeOptions: Readonly<RequestRouteOptions<unknown, FastifySchema>>
Optional routeSchema
routeSchema?: FastifySchema
Readonly routerMethod
routerMethod: string
Readonly routerPath
routerPath: string
server
server: FastifyInstance<RawServerDefault, IncomingMessage, ServerResponse<IncomingMessage>, FastifyBaseLogger, FastifyTypeProviderDefault>
Readonly socket
socket: Socket
Optional validationError
validationError?: Error & {
validation: any;
validationContext: string;
}
Type declaration
validation: any
validationContext: string
Deprecated
Use
rawproperty