lib/http-api-adapters
encodeUrlEncoded()
encodeUrlEncoded(object): stringEncodes an object as url-encoded string.
Parameters
| Parameter | Type |
|---|---|
object | Record<string, any> |
Returns
string
toFastifyReply()
toFastifyReply(response, reply): Promise<string>Adapts a Web Response to an Fastify Response, invoking appropriate Fastify response methods to handle the response.
Parameters
| Parameter | Type |
|---|---|
response | Response |
reply | FastifyReply<RawServerDefault, IncomingMessage, ServerResponse<IncomingMessage>, RouteGenericInterface, unknown, FastifySchema, FastifyTypeProviderDefault, unknown> |
Returns
Promise<string>
toWebRequest()
toWebRequest(req): RequestAdapts an Fastify Request to a Web Request, returning the Web Request.
Parameters
| Parameter | Type |
|---|---|
req | FastifyRequest<RouteGenericInterface, RawServerDefault, IncomingMessage, FastifySchema, FastifyTypeProviderDefault, unknown, FastifyBaseLogger, ResolveFastifyRequestType<FastifyTypeProviderDefault, FastifySchema, RouteGenericInterface>> |