Skip to content

Conversation

@arturobernalg
Copy link
Member

Introduce PercentCodec.RFC7639 for canonical ALPN protocol-id encoding per RFC 7639.
Avoids over-encoding of valid tchar octets compared to RFC3986 and guarantees uppercase hex.

Preserve token tchar octets (except '%') and enforce uppercase hex.
@arturobernalg arturobernalg requested a review from ok2c January 12, 2026 18:09
Copy link
Member

@ok2c ok2c left a comment

Choose a reason for hiding this comment

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

and guarantees uppercase hex

@arturobernalg I do not see any changes in the behavior of the codec to that effect but so be it.


private final BitSet unreserved;

private PercentCodec(final BitSet unreserved) {
Copy link
Member

Choose a reason for hiding this comment

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

@arturobernalg Let's make the constructor public and mark it @Internal

@ok2c
Copy link
Member

ok2c commented Jan 12, 2026

@arturobernalg Could there be a better name than RFC7639 ? RFC7639 looks completely unrelated to the codec.

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.

2 participants