Skip to content

HTTPCORE: Add RFC 7639 ALPN header codec and constant#564

Closed
arturobernalg wants to merge 1 commit intoapache:masterfrom
arturobernalg:rfc7639
Closed

HTTPCORE: Add RFC 7639 ALPN header codec and constant#564
arturobernalg wants to merge 1 commit intoapache:masterfrom
arturobernalg:rfc7639

Conversation

@arturobernalg
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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