-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move header constants to their own package
- Loading branch information
1 parent
bdb6e32
commit 71e83e8
Showing
3 changed files
with
39 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package headers | ||
|
||
const AuthorizationKey = "Authorization" | ||
const AuthType = "bearer" | ||
const UserAgentKey = "User-Agent" | ||
|
||
// TODO(kfcampbell): get the version and binary name from build settings rather than hard-coding | ||
const UserAgentValue = "go-sdk@v0.0.0" | ||
|
||
const APIVersionKey = "X-GitHub-Api-Version" | ||
|
||
// TODO(kfcampbell): get the version from the generated code somehow | ||
const APIVersionValue = "2022-11-28" |