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

◆ ok()

bool fl::response::ok ( ) const
inline

Check if response is successful (like JavaScript response.ok)

Definition at line 97 of file fetch.h.

97{ return mStatusCode >= 200 && mStatusCode < 300; }
int mStatusCode
Definition fetch.h:147

References mStatusCode.

Referenced by test_json_response(), and test_promise_approach().

+ Here is the caller graph for this function: