preRequest property
Future<void> Function({required Map<String, dynamic> body, required Map<String, String> headers, required Map<String, String> params})?
preRequest
final
Called before the HTTP request is sent.
Receives mutable headers, params, and body maps. Any changes made
to these maps are forwarded to the actual request.
Implementation
final Future<void> Function({
required Map<String, String> headers,
required Map<String, String> params,
required Map<String, dynamic> body,
})? preRequest;