You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Net module — Http → Net.Http, File-style interface #81
Rework networking under a Net namespace the way filesystem IO lives under FS.File, with Http as one member — and give the HTTP surface an FS.File-style typed interface.
Rework the interface along the same lines as FS.File: typed errors (Result, not exceptions), consistent request/response records, no bare strings where a typed value exists
Room for the rest of the family later (Net.TCP, Net.UDP, Net.DNS) — the namespace is the point
Notes
Undecided whether this lands in 0.4.0 or later. The rename is cheap; the interface rework is the real cost.
Naming
Spelled Net.HTTP, not Net.Http: docs/language-spec.md now records that an
initialism in an uppercase name is written in full caps (IO, FS, ENV, JSON, AST), each dot-separated module segment included. The future family
is likewise Net.TCP, Net.UDP, Net.DNS.
This makes the move the moment Http — currently the stdlib's only violation
of that rule — gets its correct spelling, so no separate rename issue is
needed.
Activity