addDefaultHeader method

void addDefaultHeader(
  1. String key,
  2. String value
)

Add a new key-value combination to the default headers. Do not use this for authentication. Use the proper authMethod for that.

Implementation

void addDefaultHeader(String key, String value) {
  _defaultHeaderMap[key] = value;
}