[net] internal/httpsfv: add parsing functionality for types defined in RFC 8941

0 views
Skip to first unread message

Gopher Robot (Gerrit)

unread,
Oct 1, 2025, 9:54:48 PM (6 hours ago) Oct 1
to Nicholas Husin, goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, Go LUCI, Nicholas Husin, Damien Neil, golang-co...@googlegroups.com

Gopher Robot submitted the change

Change information

Commit message:
internal/httpsfv: add parsing functionality for types defined in RFC 8941

This change introduces parsing functions for all item types defined in
RFC 8941, namely: integers, decimals, strings, tokens, byte sequences,
and booleans.

At this point, internal/httpsfv should be usable for parsing any RFC
8941-compliant HTTP Structured Field Values.

In a future CL, we will add support for parsing display strings and
dates, so that this package fully supports RFC 9651.

For golang/go#75500
Change-Id: Ib8ad2caa5f6ea4285d00506faa4b8127c2cc9419
Auto-Submit: Nicholas Husin <n...@golang.org>
Reviewed-by: Damien Neil <dn...@google.com>
Reviewed-by: Nicholas Husin <hu...@google.com>
Files:
  • M internal/httpsfv/httpsfv.go
  • M internal/httpsfv/httpsfv_test.go
Change size: L
Delta: 2 files changed, 389 insertions(+), 31 deletions(-)
Branch: refs/heads/master
Submit Requirements:
  • requirement satisfiedCode-Review: +2 by Damien Neil, +1 by Nicholas Husin
  • requirement satisfiedTryBots-Pass: LUCI-TryBot-Result+1 by Go LUCI
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: net
Gerrit-Branch: master
Gerrit-Change-Id: Ib8ad2caa5f6ea4285d00506faa4b8127c2cc9419
Gerrit-Change-Number: 708435
Gerrit-PatchSet: 6
Gerrit-Owner: Nicholas Husin <n...@golang.org>
Gerrit-Reviewer: Damien Neil <dn...@google.com>
Gerrit-Reviewer: Gopher Robot <go...@golang.org>
Gerrit-Reviewer: Nicholas Husin <hu...@google.com>
Gerrit-Reviewer: Nicholas Husin <n...@golang.org>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages