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

◆ getHeader()

fl::optional< fl::string > fl::HttpRequestParser::getHeader ( const char * name) const
private

Definition at line 273 of file http_parser.cpp.hpp.

273 {
274 fl::string lowerName = toLower(name);
275
276 for (const auto& pair : req().headers) {
277 if (toLower(pair.first) == lowerName) {
278 return pair.second;
279 }
280 }
281
282 return fl::nullopt;
283}
HttpRequest & req()
Definition http_parser.h:81
fl::string toLower(const fl::string &str)
constexpr nullopt_t nullopt
Definition optional.h:13

References fl::pair< T1, T2 >::first, fl::nullopt, req(), and fl::pair< T1, T2 >::second.

Referenced by feed().

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