WriteRequestHandler typedef

WriteRequestHandler = Future<Response> Function(Uri url, {Object? body, Encoding? encoding, Map<String, String>? headers})

POST/PUT/PATCH/DELETE typedef Represents all requests that have a body component.

Implementation

typedef WriteRequestHandler =
    Future<http.Response> Function(
      Uri url, {
      Map<String, String>? headers,
      Object? body,
      Encoding? encoding,
    });