new Page(request, response)
Create a new Page object. This will call the Request method as a instance method (eg GET /index -> [FILE SYSTEM]/apigateway/index get(..)) and set Request -> this.req and Response -> this.res. If no file is found it will set the Response statusCode to 404 and terminate the request.
Parameters:
Name | Type | Description |
---|---|---|
request |
Request | The Request object passed to your Class |
response |
Response | The Response object passed to your Class |