You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add X-Glean headers for experimental features and deprecation testing
- Add XGlean beforeRequest hook that sets X-Glean-Exclude-Deprecated-After
and X-Glean-Experimental headers
- Introduce new SDK options exclude_deprecated_after and include_experimental
with corresponding environment variable support
- Add documentation for testing experimental features and deprecation testing
- Add comprehensive test suite for the XGlean hook
|`exclude_deprecated_after`|`X_GLEAN_EXCLUDE_DEPRECATED_AFTER`|`str` (date) | Exclude API endpoints that will be deprecated after this date (format: `YYYY-MM-DD`). Use this to test your integration against upcoming deprecations. |
1012
+
|`include_experimental`|`X_GLEAN_INCLUDE_EXPERIMENTAL`|`bool`| When `True`, enables experimental API features that are not yet generally available. Use this to preview and test new functionality. |
1013
+
1014
+
> [!NOTE]
1015
+
> Environment variables take precedence over SDK constructor options when both are set.
1016
+
1017
+
> [!WARNING]
1018
+
> Experimental features may change or be removed without notice. Do not rely on experimental features in production environments.
1019
+
963
1020
<!-- Placeholder for Future Speakeasy SDK Sections -->
0 commit comments