bearerAuthorization property

void bearerAuthorization=(String token)

Adds bearer authorization to requests from this agent.

Prefixes token with 'Bearer ' and sets it for the key 'authorization' in headers.

Implementation

set bearerAuthorization(String token) {
  headers[HttpHeaders.authorizationHeader] = "Bearer $token";
}