withHeaders method

DoxResponse withHeaders(
  1. Map<String, dynamic> values
)

Set list of headers by Map

res.withHeaders({'Authorization' : 'Bearer xxx'});

Implementation

DoxResponse withHeaders(Map<String, dynamic> values) {
  _headers = values;
  return this;
}