MockRequest.post constructor

MockRequest.post(
  1. String path,
  2. String body
)

Implementation

MockRequest.post(String path, String body) :
      method = "POST",
      uri = Uri(path:path),
      headers = MockHeaders(),
      super(Stream.fromIterable(Uint8List.fromList(body.codeUnits).map((e) => Uint8List.fromList([e])))) {
}