Skip to content

Conversation

@tomas-zijdemans
Copy link
Contributor

Implements RFC-9651 parsing and serialization. RFC 9651 obsoletes RFC 8941 and is fully backwards compatible, adding support for Date and Display String types.

  • Single file implementation (like http/user_agent.ts)
  • Browser compatible
  • Matching RFC 9651 terminology as much as possible
  • Has all RFC 9651 types, including dates and display strings that extends RFC 8941
  • Official HTTPWG conformance test suite included in testdata/structured_fields/ (JSON files from https://github.com/httpwg/structured-field-tests)

@codecov
Copy link

codecov bot commented Jan 20, 2026

Codecov Report

❌ Patch coverage is 94.70672% with 37 lines in your changes missing coverage. Please review.
✅ Project coverage is 94.09%. Comparing base (007896d) to head (1fb31c7).

Files with missing lines Patch % Lines
http/unstable_structured_fields.ts 94.70% 36 Missing and 1 partial ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##             main    #6963    +/-   ##
========================================
  Coverage   94.09%   94.09%            
========================================
  Files         600      601     +1     
  Lines       43565    44264   +699     
  Branches     6999     7202   +203     
========================================
+ Hits        40991    41652   +661     
- Misses       2519     2556    +37     
- Partials       55       56     +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@tomas-zijdemans
Copy link
Contributor Author

Test coverage is not 100%, this is due to defensive programming. In practise I would argue it's 100%.

Please advise if I need to address the patch test coverage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant