restlet entry point functions do not have direct access to the incoming http request or the http response.
You can only read the query parameters (for GET requests) or the request body (for POST requests), and you can only set the response body.
You cannot inspect the request headers, you cannot set the response headers, and you cannot set the response code.