Skip to content

Move header helpers to metadata - #9

Merged
samuel-williams-shopify merged 1 commit into
mainfrom
header-methods
Aug 16, 2026
Merged

Move header helpers to metadata#9
samuel-williams-shopify merged 1 commit into
mainfrom
header-methods

Conversation

@samuel-williams-shopify

Copy link
Copy Markdown
Contributor

Move the remaining header and metadata helpers out of the deprecated Protocol::GRPC::Methods namespace.

  • Add Protocol::GRPC::Metadata.build for constructing gRPC request headers with application metadata, timeout, and content type.
  • Add Protocol::GRPC::Metadata.extract for extracting application metadata and decoding binary values.
  • Keep Methods.build_headers and Methods.extract_metadata as deprecated compatibility wrappers.
  • Update Call, internal tests, guides, and design documentation to use Metadata directly.
  • Keep Protocol::GRPC::Header focused on typed header values and HEADER_POLICY.

Validation:

  • bundle exec bake test
  • bundle exec rubocop (58 files, no offenses)
  • bundle exec bake decode:index:coverage lib (106/106 public definitions documented)

@samuel-williams-shopify
samuel-williams-shopify merged commit 30cb0f5 into main Aug 16, 2026
40 checks passed
@samuel-williams-shopify
samuel-williams-shopify deleted the header-methods branch August 16, 2026 23:51
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