setAuthHeaders method

Future<RequestHeaders> setAuthHeaders(
  1. RequestHeaders headers
)
inherited

Set the auth headers for the request. The headers parameter contains the current headers.

Usage: headers.addBearerToken('123') // add a bearer token headers.addHeader('key', 'value') // add a header headers.getBearerToken() // get the bearer token headers.hasHeader('key') // check if a header exists

Implementation

Future<RequestHeaders> setAuthHeaders(
  RequestHeaders headers,
) async {
  return headers;
}