handleRequestWithTimeout method
Implementation
Future handleRequestWithTimeout(HttpRequest request) {
return handleRequest(request);
//TODO:
return handleRequest(request).timeout(
new Duration(milliseconds: 500),
onTimeout: () => {
request.response.close()
//writeError(request, HttpStatus.requestTimeout, request.uri.toString())
},
);
}