`on_failed` will be called before `on_closed` when the stream is closed abnormally.
| 49 | // `on_failed` will be called before `on_closed` |
| 50 | // when the stream is closed abnormally. |
| 51 | virtual void on_failed(StreamId id, int error_code, |
| 52 | const std::string& error_text) {} |
| 53 | }; |
| 54 | |
| 55 | struct StreamOptions { |