Creates a new router instance.
The logger instance.
Checks if the router is active.
true if the router is active, false otherwise.
Activates the router, enabling middleware processing.
Once activated, middleware can be retrieved but not added.
This router for method chaining.
Adds a middleware in the chain.
Middleware can only be added before the router is activated.
The unique name for the middleware.
The middleware handler function.
This router for method chaining.
Retrieves a middleware by its index.
Middleware can only be retrieved after the router is activated.
The index position of the middleware.
The middleware tuple with name and handler, or undefined if not found.
StaticregisterRegisters the router as a singleton in the DI container.
The DI container to register in.
StaticresolveResolves the router from the DI container.
The DI container to resolve from.
The router instance.
Represents the http-server router.
The router acts as root of HTTP server and handles the routing of requests through a middleware chain.