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

◆ get_header()

fl::optional< fl::string > fl::net::http::Response::get_header ( const fl::string & name) const
inline

Get header value (like JavaScript response.headers.get())

Definition at line 98 of file fetch.h.

98 {
99 auto it = mHeaders.find(name);
100 if (it != mHeaders.end()) {
101 return fl::make_optional(it->second);
102 }
103 return fl::nullopt;
104 }
fl_map< fl::string, fl::string > mHeaders
Definition fetch.h:145
optional< T > make_optional(const T &value) FL_NOEXCEPT
Definition optional.h:235
constexpr nullopt_t nullopt
Definition optional.h:13

References fl::make_optional(), mHeaders, and fl::nullopt.

Referenced by get_content_type().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: