[ Web Proxy ]
URL:
Viewing: https://angular.dev/api/ssr/createRequestHandler [Back]  [Original]

createRequestHandler Angular Skip to main content
menu
close
more_horiz
menuAPI
@angular/ssr

createRequestHandler

function

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

On this page

    arrow_upward_alt Back to the top

    API

    @paramhandlerRequestHandlerFunction
    • The request handler function to be annotated.
    @returnsRequestHandlerFunction

    The same handler function passed in, with metadata attached.

    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

    Web Proxy Viewer  |  New URL  |  Original Page