getHeaders method

Map<String, String> getHeaders(
  1. Configuration configuration
)

Implementation

Map<String, String> getHeaders(Configuration configuration) {
  return {
    "accept": "application/vnd.github+json",
    "Authorization": "Bearer ${configuration.githubToken}",
    "Content-Type": "application/json"
  };
}