Read misc.httpmethod, misc.protocol and misc.port from their IANA registries #26

Merged
lilleman merged 16 commits from iana-network-tables into main 2026-09-20 00:50:35 +02:00
Owner

The first row of todo.md's misc table under v0.1.0, which goal 11 puts first: a log or request fixture holds a method, a port and a protocol more often than anything else outstanding.

Each is the register, filtered by a rule the script states. httpmethod drops the * the registry holds to stop anyone registering it, keeping 40. protocol drops what the registry leaves unassigned, reserves or marks deprecated, and takes the keyword as the name where it gives none, keeping 139. port takes the TCP assignments with a service name and a description the registry has filled in, and keeps the first service listed for a port so a number selects one row, keeping 5810 — misc.port[443].name is https, misc.port[3306].name is mysql.

misc.port renders the number, since that is what a port field holds. misc.protocol renders the keyword and misc.httpmethod the method, each carrying its register's columns beside it.

Both httpmethod and port draw uniformly over the whole register, so a bare draw is usually an obscure value. That matches misc.httpstatus, which has shipped that way since it landed, and no frequency register exists to weight either from.

The first row of `todo.md`'s `misc` table under v0.1.0, which goal 11 puts first: a log or request fixture holds a method, a port and a protocol more often than anything else outstanding. Each is the register, filtered by a rule the script states. `httpmethod` drops the `*` the registry holds to stop anyone registering it, keeping 40. `protocol` drops what the registry leaves unassigned, reserves or marks deprecated, and takes the keyword as the name where it gives none, keeping 139. `port` takes the TCP assignments with a service name and a description the registry has filled in, and keeps the first service listed for a port so a number selects one row, keeping 5810 — `misc.port[443].name` is `https`, `misc.port[3306].name` is `mysql`. `misc.port` renders the number, since that is what a port field holds. `misc.protocol` renders the keyword and `misc.httpmethod` the method, each carrying its register's columns beside it. Both `httpmethod` and `port` draw uniformly over the whole register, so a bare draw is usually an obscure value. That matches `misc.httpstatus`, which has shipped that way since it landed, and no frequency register exists to weight either from.
lilleman added 3 commits 2026-09-20 00:03:59 +02:00
lilleman added 3 commits 2026-09-20 00:17:01 +02:00
lilleman added 2 commits 2026-09-20 00:22:30 +02:00
Say what the loader refuses and what this script refuses on its own, and mirror the selector fence
Tests / vet + fmt + tests (pull_request) Successful in 1m24s
Tests / Gitea release from CHANGELOG.md (pull_request) Has been skipped
93d216616b
lilleman added 1 commit 2026-09-20 00:25:16 +02:00
Say what the loader does with a repeated name, and name the constant this one mirrors
Tests / vet + fmt + tests (pull_request) Successful in 1m25s
Tests / Gitea release from CHANGELOG.md (pull_request) Has been skipped
df8d15aeb6
lilleman added 2 commits 2026-09-20 00:32:43 +02:00
Ship the methods a request carries, as booleans a consumer can read
Tests / vet + fmt + tests (pull_request) Successful in 1m24s
Tests / Gitea release from CHANGELOG.md (pull_request) Has been skipped
caec22001d
lilleman added 1 commit 2026-09-20 00:36:40 +02:00
Stop naming what the register's other entries are, and say where the booleans stay text
Tests / vet + fmt + tests (pull_request) Successful in 1m26s
Tests / Gitea release from CHANGELOG.md (pull_request) Has been skipped
4472c8d92b
lilleman added 1 commit 2026-09-20 00:38:21 +02:00
Give the datatype item the reason that holds, and rewrap a line
Tests / vet + fmt + tests (pull_request) Successful in 1m26s
Tests / Gitea release from CHANGELOG.md (pull_request) Has been skipped
78d7e513f9
lilleman added 2 commits 2026-09-20 00:46:10 +02:00
Credit RFC 5789 for PATCH, which RFC 9110 does not define
Tests / vet + fmt + tests (pull_request) Successful in 1m21s
Tests / Gitea release from CHANGELOG.md (pull_request) Has been skipped
5083b79730
lilleman added 1 commit 2026-09-20 00:48:51 +02:00
Record why a register with no frequency draws evenly, and the rule three misses shared
Tests / vet + fmt + tests (pull_request) Successful in 1m24s
Tests / Gitea release from CHANGELOG.md (pull_request) Has been skipped
Tests / vet + fmt + tests (push) Successful in 6s
Tests / Gitea release from CHANGELOG.md (push) Successful in 4s
b3be1ee137
lilleman marked the pull request as ready for review 2026-09-20 00:50:28 +02:00
lilleman merged commit b3be1ee137 into main 2026-09-20 00:50:35 +02:00
lilleman deleted branch iana-network-tables 2026-09-20 00:50:36 +02:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: larvit/fejkdata#26