Skip to content

Is it possible to set a "binary" header? #497

Discussion options

You must be logged in to vote

Hi. Unfortunately, we can't send binary header values directly. Its behavior is based on the gRPC spec.
According to PROTOCOL-HTTP2.md, it says:

Note that HTTP2 does not allow arbitrary octet sequences for header values so binary header values must be encoded using Base64 as per https://tools.ietf.org/html/rfc4648#section-4. Implementations MUST accept padded and un-padded values and should emit un-padded values. Applications define binary headers by having their names end with "-bin". Runtime libraries use this suffix to detect binary headers and properly apply base64 encoding & decoding as headers are sent and received.

So, we can neither send binary header values directly nor -bin-pr…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Solid-Water-Dynamic
Comment options

Answer selected by Solid-Water-Dynamic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants