setHeader method

void setHeader(
  1. String name,
  2. dynamic value
)

Replace the value of the given header by the value. -param {String} name header name -param {String} value header value

Implementation

void setHeader(String name, dynamic value) {
  Map<String, dynamic> header = <String, dynamic>{'raw': value};

  headers![utils.headerize(name)] = <dynamic>[header];
}