Context is an object which contains the parsed data from the current request.
This object is passed in the request handler as an argument.
Path
The context includes the parsed request pathname and the start and end indices of the pathname.
Parameters
The context includes parsed parameters from the request URL.
Request
The context includes the original Request
object.
Response methods
The context includes methods to return a response object.
You can add headers, set the status code and text of the response: