getHeaders method

Map<String, String> getHeaders(
  1. AuthToken token
)

Returns headers to be added to an API request. Usually this adds a single "Authentication" header, but this depends on the API.

See also getApiKey, one of those should be implemented.

Implementation

Map<String, String> getHeaders(AuthToken token) {
  throw AuthException("Headers cannot be built");
}