Net
1 specification, 17 requirements. All libraries
0001 Net
| Requirement | Mechanism | Who | Note |
|---|---|---|---|
FR-001 | check | bun test suite/ | net.test.ts: classification, waits, Retry-After, retries against a local server, resume with Range, the SHA-256 check |
FR-002 | check | bun test suite/ | net.test.ts: a real server on a free port: bodies, cookies, HEAD, a handler that throws, AddrInUse, shutdown by signal |
FR-003 | check | bun test suite/ | http-client.test.ts: against a local server: decoded reads, denials, statuses, credentials refused and allowed, read-only, backoff with Retry-After and the cap, Link and cursor paging, recorded exchanges |
FR-004 | check | bun test suite/ | http-client.test.ts: readOnly lets through the POSTs its predicate says only read, and refuses every other write |
FR-005 | check | bun test suite/ | http-client.test.ts: a SigV4 transport signs each request to a recorded server, and the live transport still refuses it unless allowed |
FR-006 | check | bun test suite/ | tcp.test.ts: listen, connect, TLS with a test certificate |
FR-007 | check | bun test suite/ | dns.test.ts: resolution and its errors against a small DNS server on a free UDP port |
FR-008 | check | bun test suite/ | acme.test.ts: a name and its wildcard issued by a fake CA, the TXT values computed from its tokens and the account key |
FR-009 | check | bun test suite/ | acme.test.ts: the fake CA verifies every JWS (ES256, nonce spent once, url, jwk only for newAccount, kid after), badNonce retried |
FR-010 | check | bun test suite/ | acme.test.ts: an account made with no key, found again with the key it gave back, asked for then made for an unknown key |
FR-011 | check | bun test suite/ | acme.test.ts: records removed after success and after an invalid authorization; a removal that fails is a warning |
FR-012 | check | bun test suite/ | acme.test.ts: the directory down, an invalid authorization, the DNS throwing, the network failing, the wait running out: each a Result with one sentence |
FR-013 | check | bun test suite/ | acme.test.ts: the CSR's signature verified with its own SPKI, its common name and SANs read back |
FR-014 | check | bun test suite/ | acme.test.ts: notAfter of certificates made with der in UTCTime and GeneralizedTime, the first of a chain, needsRenewal at the edges |
FR-015 | check | bun test suite/ | acme.test.ts: cloudflareDns against a fake API on a local server: zone by name, a quoted TXT added and deleted, the errors |
FR-016 | check | bun test suite/ | otel-net.test.ts: with no pipeline the client and serve make no span and pass no traceparent; with one, the server's span is the client's child and the URL is redacted; the receiver makes no span of its own |
FR-017 | check | bun run verify | the package is built, inspected and packed by tools/pack.ts; tests/commons-packages.test.ts installs the tarball and runs every entry on Node 26 and Bun and type-checks a consumer |