Check if response appears to contain JSON content.
- Returns
- true if Content-Type header indicates JSON or body contains JSON markers
Definition at line 127 of file fetch.h.
127 {
129 if (content_type.has_value()) {
130 fl::string ct = *content_type;
131
133 }
134 return false;
135 }
fl::size find(const char &value) const
fl::optional< fl::string > get_content_type() const
Get content type convenience method.
static const fl::size npos
References fl::StrN< SIZE >::find(), get_content_type(), and fl::string::npos.
Referenced by json(), test_json_await(), and test_json_response().