Skip to content

docs(router): add allow_only_http2 to traffic_shaping configuration reference#97

Merged
ardatan merged 2 commits into
mainfrom
copilot/add-allow-only-http2-flag
Apr 27, 2026
Merged

docs(router): add allow_only_http2 to traffic_shaping configuration reference#97
ardatan merged 2 commits into
mainfrom
copilot/add-allow-only-http2-flag

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 27, 2026

Documents the new allow_only_http2 outbound option added in router#933.

Changes

  • New allow_only_http2 section under Outbound Options in traffic_shaping.mdx — covers type, default, h2c vs HTTPS behaviour, and the hard-failure semantics (no HTTP/1.1 fallback)
  • Updated Outbound Options intro to include allow_only_http2 in the list of globally/per-subgraph configurable options

Example

traffic_shaping:
  all:
    allow_only_http2: true   # h2c for plain HTTP, HTTP/2-only for HTTPS; fails if subgraph doesn't support HTTP/2

@ardatan ardatan marked this pull request as ready for review April 27, 2026 12:08
Copilot AI temporarily deployed to storybook-preview April 27, 2026 12:08 Inactive
@ardatan ardatan added the waits for release Represents changes in a library that have not yet been released label Apr 27, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 27, 2026

Deployment URL
📚 Storybook https://pr-97.the-guild-docs-storybook.pages.dev

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Router traffic shaping configuration reference to document the new outbound option allow_only_http2, aligning the docs with the Router change introduced in graphql-hive/router#933.

Changes:

  • Adds a new allow_only_http2 subsection under Outbound Options, including type/default and behavior for HTTP vs HTTPS.
  • Updates the Outbound Options introduction to include allow_only_http2 in the list of globally/per-subgraph configurable options.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/documentation/content/docs/router/configuration/traffic_shaping.mdx Outdated
Copilot AI requested a review from ardatan April 27, 2026 14:34
@ardatan ardatan merged commit fa54d13 into main Apr 27, 2026
5 of 8 checks passed
@ardatan ardatan deleted the copilot/add-allow-only-http2-flag branch April 27, 2026 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

waits for release Represents changes in a library that have not yet been released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants