handleRequestWithTimeout method

Future handleRequestWithTimeout(
  1. HttpRequest request
)

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())
      },
  );
}