headers property

Map<String, String>? headers
getter/setter pair

Extra headers for this request.

Typed as strings because that is what a header is: the previous Map<String, dynamic> invited {'x-retry-count': 3} and then failed deep inside the transport with a bare type error naming neither the header nor the request.

These cannot displace the headers the SDK needs to authenticate - see HttpService.getHeaders.

Implementation

Map<String, String>? headers;