headers

package
v0.0.5-GHES.3.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 13, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const APIVersionKey = "X-GitHub-Api-Version"
View Source
const APIVersionValue = "2022-11-28"

TODO(kfcampbell): get the version from the generated code somehow

View Source
const AuthType = "bearer"
View Source
const AuthorizationKey = "Authorization"
View Source
const RetryAfterKey = "Retry-After"
View Source
const UserAgentKey = "User-Agent"
View Source
const UserAgentValue = "go-sdk@v0.0.0"

TODO(kfcampbell): get the version and binary name from build settings rather than hard-coding

View Source
const XRateLimitLimitKey = "X-Ratelimit-Limit"
View Source
const XRateLimitRemainingKey = "X-Ratelimit-Remaining"

documentation on rate limit headers is available here: https://docs.github.com/en/rest/using-the-rest-api/rate-limits-for-the-rest-api?apiVersion=2022-11-28#checking-the-status-of-your-rate-limit

View Source
const XRateLimitResetKey = "X-Ratelimit-Reset"
View Source
const XRateLimitResourceKey = "X-Ratelimit-Resource"
View Source
const XRateLimitUsedKey = "X-Ratelimit-Used"

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL