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

◆ getHeader()

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

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

508 {
509 fl::string lowerName = toLower(name);
510
511 for (const auto& pair : resp().headers) {
512 if (toLower(pair.first) == lowerName) {
513 return pair.second;
514 }
515 }
516
517 return fl::nullopt;
518}
HttpResponse & resp()
fl::string toLower(const fl::string &str)
constexpr nullopt_t nullopt
Definition optional.h:13

References fl::pair< T1, T2 >::first, fl::nullopt, resp(), 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: