Registers an HTTP CONNECT request handler.
the handler function to be executed for this method.
Registers an HTTP DELETE request handler.
the handler function to be executed for this method.
Registers a fallback handler which is called if no other method matches.
the handler function to be executed for this method.
Registers an HTTP GET request handler.
the handler function to be executed for this method.
Registers an HTTP HEAD request handler.
the handler function to be executed for this method.
Applies the specified layer to all endpoint mappings within this router.
the layer to be applied to the endpoints.
Registers a handler function for specific HTTP methods based on the provided filter.
the filter that determines which methods the handler should be applied to.
the handler function to be executed for the specified methods and filter.
Registers an HTTP OPTIONS request handler.
the handler function to be executed for this method.
Registers an HTTP PATCH request handler.
the handler function to be executed for this method.
Registers an HTTP POST request handler.
the handler function to be executed for this method.
Registers an HTTP PUT request handler.
the handler function to be executed for this method.
Registers an HTTP TRACE request handler.
the handler function to be executed for this method.
Represents a router for mapping HTTP methods and their handlers to specific endpoints.
The class supports various HTTP methods and allows defining handlers for GET, POST, PUT, DELETE, HEAD, OPTIONS, PATCH, TRACE, and CONNECT methods. It also supports a fallback mechanism and the ability to apply middleware layers to all endpoints.