• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

moonbitlang / core / 8474
87%

Build:
DEFAULT BRANCH: main
Ran 19 Nov 2026 02:26PM UTC
Jobs 1
Files 697
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

19 Nov 2026 02:23PM UTC coverage: 88.216% (-0.004%) from 88.22%
8474

push

github

bobzhang
refactor(http): validate tokens, chunk extensions and Max-Age with lexmatch

The hand-written validators become regexes written after the RFC
grammar. `TOKEN`, `OWS` and `QUOTED_STRING` are named `const` regexes
(RFC 9110 §5.6.2-§5.6.4):

- `is_valid_http_header_field_name` is `re"^" + TOKEN + re"$"`.
- `validate_chunk_extension` matches one extension per step, its name
  and then an optional `= token` or `= quoted-string`, following the
  `chunk-ext` ABNF of RFC 9112 §7.1.1. `trim_OWS`, `validate_token`,
  `validate_quoted_string` and `is_VCHAR` are no longer needed.
- `parse_max_age` checks `re"^-?[0-9]+$"` before converting.

Behavior is unchanged: old and new agree on every input up to length 6
(chunk extensions: 3.3M inputs over 12 characters, plus 19M up to length
8 over 8), every header name up to length 4 over 12 characters, and
every Max-Age value up to length 6 over 9 characters plus the Int64
bounds.

8 of 8 new or added lines in 2 files covered. (100.0%)

2 existing lines in 1 file now uncovered.

25737 of 29175 relevant lines covered (88.22%)

771037.87 hits per line

Coverage Regressions

Lines Coverage ∆ File
2
89.47
-1.09% async/http/utils.mbt
Jobs
ID Job ID Ran Files Coverage
1 8474.1 19 Nov 2026 02:26PM UTC 697
88.22
GitHub Action Run
Source Files on build 8474
  • Tree
  • List 697
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • f36b9984 on github
  • Prev Build on main (#8472)
  • Next Build on main (#8478)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc