filterRequest method
FutureOr<String?>
filterRequest(
- HttpClient client,
- HttpMethod method,
- String url,
- 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 originalurl
will be used.
Implementation
FutureOr<String?> filterRequest(HttpClient client, HttpMethod method,
String url, Map<String, String>? headers) =>
null;