Skip to content

Conversation

@arturobernalg
Copy link
Member

New public AlpnHeader implementing RFC7639.

Add HttpHeaders.ALPN. Canonical encoding: keep tchar except %; uppercase hex; UTF-8; liberal parse (OWS, lower-case %hh).

Note: A follow-up PR for httpclient5 will inject ALPN on CONNECT (classic & async) via an optional provider

@arturobernalg arturobernalg requested a review from ok2c October 2, 2025 06:46
* @since 5.4
*/
@Contract(threading = ThreadingBehavior.IMMUTABLE)
public final class AlpnHeader {
Copy link
Member

Choose a reason for hiding this comment

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

@arturobernalg It is going to be a support class used in client, right? Maybe it should be called AlpnHeaderSupport and be @Internal?

Copy link
Member Author

Choose a reason for hiding this comment

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

@ok2c I’m working on the client-side part now.

Add AlpnHeaderSupport codec + HttpHeaders.ALPN; canonical encoding (uppercase hex, '%' encoded).
@ok2c
Copy link
Member

ok2c commented Oct 4, 2025

@arturobernalg I will commit the header constant but codecs should go into client. This feature belongs there.

@arturobernalg
Copy link
Member Author

@arturobernalg I will commit the header constant but codecs should go into client. This feature belongs there.

@ok2c I'll the proper changes and I will moved to the client

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