The handleRequest function now takes a request and a response. The content of response.data and response.statusCode is sent to the server.