Constructs a new Application instance.
The network address the server will bind to.
The port number the server will listen on.
Protected
errorProtected
Readonly
handlerProtected
loggerProtected
requestOptional
method?: stringProtected
serverThe underlying TCP server.
Registers a DELETE request handler.
Rest
...middleware: AppMiddleware[]Registers a GET request handler.
Rest
...middleware: AppMiddleware[]Private
handleRegisters an OPTIONS request handler.
Rest
...middleware: AppMiddleware[]Registers a PATCH request handler.
Rest
...middleware: AppMiddleware[]Registers a POST request handler.
Rest
...middleware: AppMiddleware[]Registers a PUT request handler.
Rest
...middleware: AppMiddleware[]Registers a request handler for all HTTP methods on a specific route.
The route pattern to match.
Rest
...middleware: AppMiddleware[]The handler function to execute.
Generated using TypeDoc
A class representing a web application, extending the functionality of HttpServer.