|
FastLED 3.9.15
|
Handle for ASYNC_STREAM calls Provides onData() for intermediate updates, plus then()/catch_() for final result.
Definition at line 23 of file stream_transport.h.
#include <stream_transport.h>
Collaboration diagram for fl::net::http::StreamHandle:Public Member Functions | |
| StreamHandle () FL_NOEXCEPT=default | |
| StreamHandle & | catch_ (fl::function< void(const fl::task::Error &)> cb) |
| Register callback for errors. | |
| StreamHandle & | onData (fl::function< void(const fl::json &)> cb) |
| Register callback for intermediate stream data. | |
| fl::task::Promise< fl::json > & | promise () |
| Access the underlying promise. | |
| StreamHandle & | then (fl::function< void(const fl::json &)> cb) |
| Register callback for final result. | |
| bool | valid () const |
| Check if handle is valid. | |
Private Member Functions | |
| StreamHandle (fl::task::Promise< fl::json > p, fl::shared_ptr< fl::function< void(const fl::json &)> > updateCb) | |
Private Attributes | |
| fl::task::Promise< fl::json > | mPromise |
| fl::shared_ptr< fl::function< void(const fl::json &)> > | mUpdateCallback |
Friends | |
| class | HttpStreamTransport |