Constructs a new instance of the Router class.
The configuration object for the router.
None
Protected
Readonly
configThe configuration object for the router.
Protected
Readonly
proxyThe proxy object used for handling requests and responses.
Protected
Readonly
routeA protected property that holds a RouteResolver object. The RouteResolver is responsible for resolving routes and returning the appropriate response.
Returns a callable function that can be used to export data.
Handles a serverless event by executing a transaction and resolving the route based on the event.
The serverless event object.
The serverless context object.
None
Starts the application by loading the proxy.
Stops the execution of the program and unloads the proxy.
Optional
err: anyOptional error object to pass to the unload method.
Represents a server container that extends the Server class and handles serverless events.