-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Would it be feasible/possible to add new event hook prior to request being made #2641
Comments
Hmm... I think what you want is just to wrap the calls in a subclass. See the subclasses at the end of this file for example: Line 78 in 63bfdc7
|
Thank you. This surely helps with fasthttpuser class. Would there be equivalent way to |
If you just want to set default headers in HttpUser, you can try |
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
Prerequisites
Description
I am specifically interested in seeing if it is feasible to build additional event hook to fire off prior to request in locust being made. Inverse of this hook https://docs.locust.io/en/stable/api.html#locust.event.Events.request Available hook is fired when request is completed, this would fire prior to request being made.
In particular my use case is to be able modify request headers in bulk/conditionally. Has a request like this come in at all? Would this be feasible to build out.
The text was updated successfully, but these errors were encountered: