Interceptor typedef
Interceptor =
Future<void> Function({dynamic body, required Map<String, String> headers, required String method, required Uri uri})
Intercepts an HTTP request before it's sent.
Allows modification of method, URI, headers, or body.
Implementation
typedef Interceptor =
Future<void> Function({
required String method,
required Uri uri,
required Map<String, String> headers,
dynamic body,
});