headers property

Map<String, dynamic> headers
getter/setter pairinherited

Http request headers. The keys of initial headers will be converted to lowercase, for example 'Content-Type' will be converted to 'content-type'.

You should use lowercase as the key name when you need to set the request header.

Implementation

late Map<String, dynamic> headers;