k_card/k_phone/lib
Morten V. Christiansen 328c7d7cae Add Component 2 CONNECT handler; fix CONNECT routing tests
proxy_service.dart: _handleConnect gates on hasAnyActiveSession() (407 if
no active session), then connects directly to the upstream external target
(host:port from Host header), detaches the socket, and pipes bytes
bidirectionally. k_server is not involved in CONNECT tunnels.

filter_proxy_test.dart: replace _mockTcp() with _mockComp2Tcp() in the
CONNECT routing group so the mock speaks the full CONNECT handshake
(reads request headers, sends 200 Connection Established, pauses sub).
All 21 tests pass.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-02 20:22:24 +02:00
..
ctaphid_channel.dart Phase 9: add Component 1 (filter_proxy), tests, session gate, doc update 2026-05-02 20:10:54 +02:00
enrollment_db.dart Phase 9: add Component 1 (filter_proxy), tests, session gate, doc update 2026-05-02 20:10:54 +02:00
fido2_ops.dart Phase 9: add Component 1 (filter_proxy), tests, session gate, doc update 2026-05-02 20:10:54 +02:00
filter_proxy.dart Phase 9: add Component 1 (filter_proxy), tests, session gate, doc update 2026-05-02 20:10:54 +02:00
k_server_client.dart Phase 9: add Component 1 (filter_proxy), tests, session gate, doc update 2026-05-02 20:10:54 +02:00
main.dart Phase 9: add Component 1 (filter_proxy), tests, session gate, doc update 2026-05-02 20:10:54 +02:00
proxy_service.dart Add Component 2 CONNECT handler; fix CONNECT routing tests 2026-05-02 20:22:24 +02:00
session_manager.dart Phase 9: add Component 1 (filter_proxy), tests, session gate, doc update 2026-05-02 20:10:54 +02:00