RFE: please, implement handling return value from beforeSend #198
Labels
severity:BC breaking
Breaks backwards compatibility
status:ready for adoption
Feel free to implement this issue.
type:enhancement
Enhancement
Milestone
In StreamTransport::send()
Also in Request::beforeSend()
We need to handle return value from
beforeSend
to cancel sending, like ActiveRecord do:For ex. I want to implement response caching behavior for Client. So, if response is already in cache, then onBeforeSend return false and sending must stop.
The text was updated successfully, but these errors were encountered: