header method

DoxResponse header(
  1. String key,
  2. dynamic value
)

set headers

res.header('Authorization', 'Bearer xxx');

Implementation

DoxResponse header(String key, dynamic value) {
  _headers[key] = value;
  return this;
}