Migrate from Channel/Slot to PipelineState API#1247
Closed
Conversation
Add HTTPVersion and header helper APIs. Implement request options: copyheaders, basicauth, canonicalize_headers, detect_content_type, proxy/pool, logerrors/logtag. Fix request/body handling, stream error propagation, websocket control frames, and header duplication. Add tests for headers, httpversion, client options, and websocket ping/pong.
Implement HTTP.open with streaming IO for requests/responses. - Add stream IO methods, lifecycle control, and GC rooting - Prepare HTTP/1 chunked requests before stream creation - Add client streaming tests for GET and POST
Add listen/listen! wrappers and blocking serve. - Enable stream handlers with request-body streaming and chunked responses - Add server stream helpers (setstatus/setheader) and tests
- track control frames and fragmented messages - add close handling with error propagation - cover fragmentation/close in tests
- gate retries by idempotency and body retryability - honor retry_delays and retry_check overrides - track retry counts in response metrics - add retry behavior tests
Adapt to Reseau's new exception-based error model: - Replace AwsIO module references with Reseau.Sockets - Fix channel_slot_send_message result check (now returns nothing) - Change WsChannelHandler vtable methods from ::Int to ::Nothing - Fix unsafe_string call on Reseau.error_str (returns String, not Ptr) - Update tests for new error patterns Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Update HTTP server, client, and WebSocket code to use the new closure-based PipelineState from Reseau. Key changes: - Server: Connection.channel → Connection.pipeline, uses pipeline_shutdown!/pipeline_trigger_read/pipeline_schedule_task_now! - Client stream: h1conn.slot → h1conn.pipeline, uses pipeline_write! - WebSockets: WsChannelHandler → WsHandler (no longer extends AbstractChannelHandler), installs read handler via downstream_read_setter instead of slot manipulation - utils: _H2_CHANNEL_SUPPORTED = true (H2Connection no longer extends AbstractChannelHandler but is supported via pipeline API) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
7240d67 to
6450edd
Compare
- Test only Julia 1.12 on Linux, macOS, Windows - Install Reseau and AwsHTTP from GitHub before building - Remove old doc/coverage steps - Trigger on all PRs (not just master-targeted) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
PipelineStatefrom ReseauConnection.channel→Connection.pipeline, usespipeline_shutdown!/pipeline_trigger_read/pipeline_schedule_task_now!h1conn.slot→h1conn.pipeline, usespipeline_write!WsChannelHandler→WsHandler(no longer extendsAbstractChannelHandler), installs read handler viadownstream_read_setter_H2_CHANNEL_SUPPORTED = true(H2Connection supported via pipeline API)Companion PRs
Test plan
🤖 Generated with Claude Code