the event request_success should pass request and response to the listener
See original GitHub issueIs your feature request related to a problem? Please describe.
I want to fetch the headers of request or response when a request is successful.
Describe the solution you’d like
@events.request_success.add_listener
def my_success_handler(request_type, name, response_time, response_length, request, response, **kw):
print("Successfully made a request to: %s" % name)
Describe alternatives you’ve considered
Additional context
Issue Analytics
- State:
- Created 3 years ago
- Reactions:5
- Comments:11 (3 by maintainers)
Top Results From Across the Web
Event hooks — Locust 2.14.0 documentation
The request event has a context parameter that enable you to pass data about the request (things like username, tags etc). It can...
Read more >Using a Request Object Event Listener - AWS Documentation
To process the response, you must create an event listener for the AWS.Request object to register a callback function for the method call....
Read more >Events and Event Listeners (Symfony Docs)
Creating an Event Subscriber; Request Events, Checking Types; Listeners or Subscribers ... App\EventListener; use Symfony\Component\HttpFoundation\Response; ...
Read more >Event hooks - Okta Developer
After registering an event hook, but before you can use it, you need to have Okta make a one-time GET verification request to...
Read more >Events - Laravel - The PHP Framework For Web Artisans
This command will generate any events or listeners that are listed in your ... efficient for the framework to scan all of your...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
At least, we could put them into the optional arguments:
I like the idea and will happily merge it, but someone else needs to write the code and some test cases 😃