FastLED 3.9.15
Loading...
Searching...
No Matches
fl::net::http::FetchOptions Class Reference

Detailed Description

Fetch options builder (fluent interface)

Definition at line 195 of file fetch.h.

#include <fetch.h>

+ Collaboration diagram for fl::net::http::FetchOptions:

Public Member Functions

 FetchOptions (const fl::string &url)
 
 FetchOptions (const fl::string &url, const RequestOptions &options)
 
FetchOptionsbody (const fl::string &data)
 Set request body.
 
FetchOptionsheader (const fl::string &name, const fl::string &value)
 Add header.
 
FetchOptionsjson (const fl::string &json_data)
 Set JSON body with proper content type.
 
FetchOptionsmethod (const fl::string &http_method)
 Set HTTP method.
 
const RequestOptionsoptions () const
 Get the options for this request.
 
FetchOptionstimeout (int timeout_ms)
 Set timeout in milliseconds.
 
const fl::stringurl () const
 Get the URL for this request.
 

Private Attributes

RequestOptions mOptions
 
fl::string mUrl
 

Friends

class FetchManager
 

The documentation for this class was generated from the following file: