MockRequest.get constructor

MockRequest.get(
  1. String path, {
  2. Map<String, String> headers = const {},
})

Implementation

MockRequest.get(String path, {Map<String,String> headers = const {}}) :
      method = "GET",
      uri = Uri(path:path),
      this.headers = MockHeaders(headers),
      super(new Stream.empty()) {
}