Skip to content

feat: bounded HTTP client facade for FastLED migration - #169

Merged
zackees merged 13 commits into
mainfrom
feat/http-client-facade
Sep 13, 2026
Merged

zackees merged 13 commits into
mainfrom
feat/http-client-facade

Conversation

@zackees

@zackees zackees commented Sep 13, 2026

Copy link
Copy Markdown
Collaborator

Summary

Adds opt-in HTTP GET/HEAD/POST, caller-buffered response streams and a blocking view driven by a caller-owned kernel runtime. Backend types remain private. Product endpoints, payloads, status interpretation and artifact publication stay in FastLED.

Bounds cover requests, bodies, metadata acceptance, parser metadata, redirect hops and connect/read/total deadlines. TLS verifies certificates and hostnames. Cross-origin headers are stripped, cross-origin POST replay and HTTPS downgrade are rejected, and automatic decoding stays disabled under feature unification. Exact private parser pins make the audited backend apply to published consumers.

Validation

  • RED -> GREEN facade adoption, deadline, cross-origin replay, feature-unification and parser-pin regressions.
  • 22 local HTTP integration tests pass; optional public HTTPS acceptance fixture is ignored by default.
  • Four local TLS tests pass; disabling verification/downgrade protections produced three expected failures.
  • HTTP-enabled suite: 170 library tests plus enabled integration suites pass.
  • Strict HTTP all-target Clippy and dependency isolation RED -> GREEN pass.
  • Local one-agent pre-push review: clean.
  • Supported-platform CI is pending. Parser thresholds are not advertised as exact allocator/RSS ceilings; see docs/http-client.md.

Refs #167. Coordinated with FastLED/cli#238 and FastLED/cli#229. This capability must merge and be published before FastLED removes its migration-only local path override.

Refs #167. Native Windows CI 34740069309 reproduced failures in both trusted TLS tests. Accepted Winsock sockets inherit nonblocking listener state; explicitly restore blocking mode before bounded TLS I/O.
@zackees

zackees commented Sep 13, 2026

Copy link
Copy Markdown
Collaborator Author

Native Windows run 34740069309 failed both trusted local TLS fixture tests (542 passed, 2 failed). Commit 0aad496 explicitly restores blocking mode on the accepted socket before bounded native-TLS I/O. Winsock accepted sockets inherit listener properties: https://learn.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-accept . No certificate/hostname checks are disabled. Local validation: all four TLS tests pass, HTTP integration 22 pass / 1 external-fixture test ignored, scoped strict Clippy passes. Windows confirmation is pending run 34740759856.

@zackees
zackees merged commit ad2269e into main Sep 13, 2026
43 checks passed
@zackees
zackees deleted the feat/http-client-facade branch November 5, 2026 05:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant