more_horiz
@angular/ssr
createRequestHandler
function
Annotates a request handler function with metadata, marking it as a special handler.
On this page
API
function createRequestHandler(
handler: RequestHandlerFunction,
): RequestHandlerFunction;Usage Notes
Example usage in a Hono application:
const app = new Hono();
export default createRequestHandler(app.fetch);
Example usage in a H3 application:
const app = createApp();
const handler = toWebHandler(app);
export default createRequestHandler(handler);
Jump to details