bearerAuthorization property

void bearerAuthorization=(String token)

Sets the Authorization header of this request.

Will apply the following header to this request:

    Authorization: Bearer token

Implementation

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