void closeRequest(Request request)

close the request from requester side and notify responder

Source

void closeRequest(Request request) {
  if (_requests.containsKey(request.rid)) {
    if (request.streamStatus != StreamStatus.closed) {
      addToSendList({'method': 'close', 'rid': request.rid});
    }
    _requests.remove(request.rid);
    request._close();
  }
}