headers property

  1. @override
Map<String, String> get headers
override

Returns the current request headers as a string map.

Useful for debugging or when you need to inspect the headers that will be sent with requests.

Implementation

@override
Map<String, String> get headers =>
    _dio.options.headers.map((key, value) => MapEntry(key, value.toString()));