Type Alias RawResultHandler
RawResultHandler: (
req: http.IncomingMessage,
res: http.ServerResponse,
) => void | Promise<void>
Type Declaration
- (req: http.IncomingMessage, res: http.ServerResponse): void | Promise<void>
Parameters
- req: http.IncomingMessage
- res: http.ServerResponse
Returns void | Promise<void>
Handler used by ActionResult.raw.
The handler receives the native Node request and response and is responsible for writing headers/body as needed.