fix: pre_hook (sync) make request mutable - #825
Conversation
ahl
left a comment
There was a problem hiding this comment.
I'm sort of surprised that we don't have a test that validates this. What will existing users of pre_hook experience other than a type error if they've specified the type in their pre_hook closure or fn?
Can you rephrase, I am not sure I understand what your concern is. Do you want an interface check for the provided |
|
If there is an existing user of the |
|
Happy new year! Mildly belated response; the user won't see a delta, since a we can call any |
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FsEsN8H4VAfy3enDy5kiGU
The sync pre_hook now receives &mut reqwest::Request. Validate at compile time both that a hook can mutate the request and that a hook written against &reqwest::Request still compiles via &mut -> & coercion. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FsEsN8H4VAfy3enDy5kiGU
ahl
left a comment
There was a problem hiding this comment.
thanks for this; sorry for the very long delay
Obsoletes #823