Repository navigation
Conversation
This was referenced Oct 18, 2026
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.
Applications currently need verbose/debug events or their own FFI to observe the point after connection/TLS setup and before sending a request. Add the native pre-request callback through
Handler::prereq,Easy::prereq_functionandTransfer::prereq_function.Easy2::prereq(true)explicitly enables the handler callback. It is disabled by default and by reset, uses the existing boxed Inner for userdata, and allocates no callback storage in the Handler form. IP arguments borrow libcurl data; returning false aborts before sending the request. Easy and Transfer follow the existing owned/scoped callback model.Two commits separate the related panic fix from the API:
Multi::perform,actionandtimeoutreturn from C. An existing header-callback reproduction showed that the old Multi path left the deferred panic stored, suppressing later callbacks on that thread. The regression catches the original panic and successfully performs another transfer.GitHub HTTP/WebSocket/ABI CI passed on Linux, macOS and Windows.
Local validation on Linux:
cargo +1.96.1 fmt --all -- --checkstatic-curl,http2,brotli,websocket,ws_start_frame_8_16_0: 78 passed, 1 ignored.Loopback suites ran with proxy environment variables cleared; the external-network atexit and documentation tests used the environment proxy. Coverage includes opt-in/disable/reset, moved handles and reused sockets, redirects, abort-before-headers, panic propagation/recovery, and owned/scoped callback restoration.
Based on
moli-apple-sectrust(a0ea59f) to preserve the exact TLS integration currently pinned by Moli. Consumed by lexmount/moli#1702 to remove its handwritten prereq FFI.