|
FastLED 3.10.8
|
#include <fetch.h>
Collaboration diagram for fl::net::http::FetchOptions:Public Member Functions | |
| FetchOptions (const fl::string &url) FL_NO_EXCEPT | |
| FetchOptions (const fl::string &url, const RequestOptions &options) FL_NO_EXCEPT | |
| FetchOptions & | body (const fl::string &data) FL_NO_EXCEPT |
| Set request body. | |
| FetchOptions & | header (const fl::string &name, const fl::string &value) FL_NO_EXCEPT |
| Add header. | |
| FetchOptions & | json (const fl::string &json_data) FL_NO_EXCEPT |
| Set JSON body with proper content type. | |
| FetchOptions & | method (const fl::string &http_method) FL_NO_EXCEPT |
| Set HTTP method. | |
| const RequestOptions & | options () const FL_NO_EXCEPT |
| Get the options for this request. | |
| FetchOptions & | timeout (int timeout_ms) FL_NO_EXCEPT |
| Set timeout in milliseconds. | |
| const fl::string & | url () const FL_NO_EXCEPT |
| Get the URL for this request. | |
Private Attributes | |
| RequestOptions | mOptions |
| fl::string | mUrl |
Friends | |
| class | FetchManager |