[ FEATURE REQUEST ] - Event based handling response #4
Labels
enhancement
New feature or request
feature-request
This issue is a feature request
help wanted
Extra attention is needed
Is your feature request related to a problem? Please describe.
Yes, now if anyone wants to create a request using client they should write the script like this:
See the problem?
User need to wait for response to do some actions on it. This way of doing request wouldn't be useful and there is no reason behind doing them async, because we actually need to wait for the response to take an action on it.
More proper way to handle the response:
If we can add an eventlistener to client object so we can listen on receiving response events and take some actions for it, we can solve this issue.
requestToBeSent
andresponseReceived
:You can see other desired implementation on the refrence Design documentation which aligns with goal of this extension:
Describe the solution you'd like
I have my own solution for it and i'm going to implement it, but i'm welcome to anyone ideas on implementation and addressing this issue.
Additional context
Actually i don't like this way but it's mentioned in the design document for new HTTP API
The text was updated successfully, but these errors were encountered: