• Overview
@angular/ssr

createRequestHandler

function

Annotates a request handler function with metadata, marking it as a special handler.

API

createRequestHandler

Annotates a request handler function with metadata, marking it as a special handler.

@paramhandlerRequestHandlerFunction
  • The request handler function to be annotated.

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