Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there an event hook function that is called after a request is fully prepared? #361

Open
TomeSq opened this issue Jan 23, 2024 · 1 comment

Comments

@TomeSq
Copy link

TomeSq commented Jan 23, 2024

Thank you for allowing us to use your wonderful library.

Please let me know if you know of any of the following functions

Is there an event hook function that is called just before sending a request, like the event hooks in python's httpx library? When sending a request, we need to add a signature computed from the header and body of the request packet.
https://www.python-httpx.org/advanced/#event-hooks

I can't rewrite the request in Middleware because the request is not mut.

@Fishrock123
Copy link
Member

Surf's Middleware system is it's only "event hook like" system.

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

No branches or pull requests

2 participants