FastLED 3.9.15
Loading...
Searching...
No Matches

◆ json()

FetchOptions & fl::net::http::FetchOptions::json ( const fl::string & json_data)
inline

Set JSON body with proper content type.

Definition at line 220 of file fetch.h.

220 {
221 mOptions.body = json_data;
222 mOptions.headers["Content-Type"] = "application/json";
223 return *this;
224 }
RequestOptions mOptions
Definition fetch.h:240

References FetchOptions(), and mOptions.

+ Here is the call graph for this function: