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

◆ get_header()

fl::optional< fl::string > fl::response::get_header ( const fl::string & name) const
inline

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

Definition at line 103 of file fetch.h.

103 {
104 auto it = mHeaders.find(name);
105 if (it != mHeaders.end()) {
106 return fl::make_optional(it->second);
107 }
108 return fl::nullopt;
109 }
fl_map< fl::string, fl::string > mHeaders
Definition fetch.h:150
optional< T > make_optional(const T &value)
Definition optional.h:120
constexpr nullopt_t nullopt
Definition optional.h:11

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: