AuthenticatedRequest
Api Code Documentation / Exports / httpd/lib / AuthenticatedRequest
httpd/lib.AuthenticatedRequest
#
HierarchyFastifyRequest
↳
AuthenticatedRequest
#
Table of contents#
Properties- body
- connection
- context
- headers
- hostname
- id
- ip
- ips
- is404
- log
- method
- metrics
- params
- protocol
- query
- raw
- req
- routerMethod
- routerPath
- server
- socket
- url
- user
- validationError
#
Properties#
body• body: unknown
#
Inherited fromFastifyRequest.body
#
Defined innode_modules/fastify/types/request.d.ts:32
#
connection• Readonly
connection: Socket
#
Inherited fromFastifyRequest.connection
#
Defined innode_modules/fastify/types/request.d.ts:55
#
context• context: FastifyContext
<unknown
>
#
Inherited fromFastifyRequest.context
#
Defined innode_modules/fastify/types/request.d.ts:33
#
headers• headers: IncomingHttpHeaders
#
Inherited fromFastifyRequest.headers
#
Defined innode_modules/fastify/types/request.d.ts:29
#
hostname• Readonly
hostname: string
#
Inherited fromFastifyRequest.hostname
#
Defined innode_modules/fastify/types/request.d.ts:44
#
id• id: any
#
Inherited fromFastifyRequest.id
#
Defined innode_modules/fastify/types/request.d.ts:25
#
ip• Readonly
ip: string
#
Inherited fromFastifyRequest.ip
#
Defined innode_modules/fastify/types/request.d.ts:42
#
ips• Optional
Readonly
ips: string
[]
#
Inherited fromFastifyRequest.ips
#
Defined innode_modules/fastify/types/request.d.ts:43
#
is404• Readonly
is404: boolean
#
Inherited fromFastifyRequest.is404
#
Defined innode_modules/fastify/types/request.d.ts:50
#
log• log: FastifyLoggerInstance
#
Inherited fromFastifyRequest.log
#
Defined innode_modules/fastify/types/request.d.ts:30
#
method• Readonly
method: string
#
Inherited fromFastifyRequest.method
#
Defined innode_modules/fastify/types/request.d.ts:47
#
metrics• Optional
metrics: Object
#
Type declarationName | Type |
---|---|
hist | (labels? : Partial <Record <string , string | number >>) => void |
sum | (labels? : Partial <Record <string , string | number >>) => void |
#
Inherited fromFastifyRequest.metrics
#
Defined innode_modules/fastify-metrics/dist/index.d.ts:18
#
params• params: unknown
#
Inherited fromFastifyRequest.params
#
Defined innode_modules/fastify/types/request.d.ts:26
#
protocol• Readonly
protocol: "http"
| "https"
#
Inherited fromFastifyRequest.protocol
#
Defined innode_modules/fastify/types/request.d.ts:46
#
query• query: unknown
#
Inherited fromFastifyRequest.query
#
Defined innode_modules/fastify/types/request.d.ts:28
#
raw• raw: IncomingMessage
#
Inherited fromFastifyRequest.raw
#
Defined innode_modules/fastify/types/request.d.ts:27
#
req• Readonly
req: IncomingMessage
deprecated
Use raw
property
#
Inherited fromFastifyRequest.req
#
Defined innode_modules/fastify/types/request.d.ts:41
#
routerMethod• Readonly
routerMethod: string
#
Inherited fromFastifyRequest.routerMethod
#
Defined innode_modules/fastify/types/request.d.ts:49
#
routerPath• Readonly
routerPath: string
#
Inherited fromFastifyRequest.routerPath
#
Defined innode_modules/fastify/types/request.d.ts:48
#
server• server: FastifyInstance
<Server
, IncomingMessage
, ServerResponse
, FastifyLoggerInstance
>
#
Inherited fromFastifyRequest.server
#
Defined innode_modules/fastify/types/request.d.ts:31
#
socket• Readonly
socket: Socket
#
Inherited fromFastifyRequest.socket
#
Defined innode_modules/fastify/types/request.d.ts:51
#
url• Readonly
url: string
#
Inherited fromFastifyRequest.url
#
Defined innode_modules/fastify/types/request.d.ts:45
#
user• user: AuthToken
#
Defined in#
validationError• Optional
validationError: Error
& { validation
: any
; validationContext
: string
}
in order for this to be used the user should ensure they have set the attachValidation option.
#
Inherited fromFastifyRequest.validationError
#
Defined innode_modules/fastify/types/request.d.ts:36