Search
Preparing search index...
The search index is not available
@thermopylae/core.adapter.fastify
Thermopylae
Github
Options
All
Public
Public/Protected
All
Inherited
Only exported
Menu
response
FastifyResponseAdapter
Modules
{"Request":"request","Response":"response"}
Class FastifyResponseAdapter<Payload>
Adapter for fastify reply instance.
Type parameters
Payload
Type of the response payload.
Hierarchy
FastifyResponseAdapter
Implements
HttpResponse
<
Payload
>
Constructors
constructor
Accessors
raw
sent
Methods
header
send
status
type
Constructors
constructor
new
Fastify
Response
Adapter<Payload>
(
res
:
FastifyReply
<
Server
,
IncomingMessage
,
ServerResponse
,
RouteGenericInterface
,
unknown
>
)
:
FastifyResponseAdapter
<
Payload
>
Type parameters
Payload
Parameters
res:
FastifyReply
<
Server
,
IncomingMessage
,
ServerResponse
,
RouteGenericInterface
,
unknown
>
Returns
FastifyResponseAdapter
<
Payload
>
Accessors
raw
get
raw
(
)
:
FastifyReply
<
Server
,
IncomingMessage
,
ServerResponse
,
RouteGenericInterface
,
unknown
>
Get raw fastify response instance.
Returns
FastifyReply
<
Server
,
IncomingMessage
,
ServerResponse
,
RouteGenericInterface
,
unknown
>
sent
get
sent
(
)
:
boolean
inheritdoc
Returns
boolean
Methods
header
header
(
field
:
string
, value
:
HttpHeaderValue
)
:
FastifyResponseAdapter
<
Payload
>
inheritdoc
Parameters
field:
string
value:
HttpHeaderValue
Returns
FastifyResponseAdapter
<
Payload
>
send
send
(
payload
?:
Payload
)
:
void
inheritdoc
Parameters
Optional
payload:
Payload
Returns
void
status
status
(
statusCode
:
HttpStatusCode
)
:
FastifyResponseAdapter
<
Payload
>
inheritdoc
Parameters
statusCode:
HttpStatusCode
Returns
FastifyResponseAdapter
<
Payload
>
type
type
(
mimeType
:
string
)
:
FastifyResponseAdapter
<
Payload
>
inheritdoc
Parameters
mimeType:
string
Returns
FastifyResponseAdapter
<
Payload
>
Fastify
Response
Adapter
constructor
raw
sent
header
send
status
type
Adapter for fastify reply instance.