FastLED 3.9.15
Loading...
Searching...
No Matches
fl::fetch_options Class Reference

Detailed Description

Fetch options builder (fluent interface)

Definition at line 200 of file fetch.h.

#include <fetch.h>

+ Collaboration diagram for fl::fetch_options:

Public Member Functions

 fetch_options (const fl::string &url)
 
 fetch_options (const fl::string &url, const RequestOptions &options)
 
fetch_optionsbody (const fl::string &data)
 Set request body.
 
fetch_optionsheader (const fl::string &name, const fl::string &value)
 Add header.
 
fetch_optionsjson (const fl::string &json_data)
 Set JSON body with proper content type.
 
fetch_optionsmethod (const fl::string &http_method)
 Set HTTP method.
 
const RequestOptionsoptions () const
 Get the options for this request.
 
fetch_optionstimeout (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: