Skip to content

feat: add WithIncludeBeta option, keep WithIncludeExperimental as an alias - #145

Draft
travis-hoover-glean wants to merge 1 commit into
mainfrom
thoov/devplat-1598-include-beta
Draft

travis-hoover-glean wants to merge 1 commit into
mainfrom
thoov/devplat-1598-include-beta

Conversation

@travis-hoover-glean

Copy link
Copy Markdown
Contributor

Adds a WithIncludeBeta option and X_GLEAN_INCLUDE_BETA env var, with WithIncludeExperimental kept as an alias, as we're renaming experimental APIs to beta. Both still send X-Glean-Include-Experimental for now since older deployments would fail the CORS preflight on a new header.

s := apiclientgo.New(
	apiclientgo.WithSecurity(apiToken),
	apiclientgo.WithServerURL(serverURL),
	apiclientgo.WithIncludeBeta(true),
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant