filterRequest method

FutureOr<String?> filterRequest(
  1. HttpClient client,
  2. HttpMethod method,
  3. String url,
  4. Map<String, String>? headers,
)

Filters the request before submit.

Any modification to headers will be submitted.

  • client the HttpClient performing the request.
  • method the HTTP Method of the request.
  • url the request URL.
  • headers the headers of the request that can be modified.
  • Return: should return the URL. If null or empty is returned the original url will be used.

Implementation

FutureOr<String?> filterRequest(HttpClient client, HttpMethod method,
        String url, Map<String, String>? headers) =>
    null;