MCPcopy Create free account
hub / github.com/FastLED/FastLED / to_httpd_method

Function to_httpd_method

src/fl/stl/asio/http/server.cpp.hpp:645–651  ·  view source on GitHub ↗

Map method string to httpd_method_t

Source from the content-addressed store, hash-verified

643
644// Map method string to httpd_method_t
645httpd_method_t to_httpd_method(const string& method) {
646 if (method == "GET") return HTTP_GET;
647 if (method == "POST") return HTTP_POST;
648 if (method == "PUT") return HTTP_PUT;
649 if (method == "DELETE") return HTTP_DELETE;
650 return HTTP_GET;
651}
652
653// Context passed to ESP-IDF URI handler callback
654struct EspRouteContext {

Callers 2

startMethod · 0.85
routeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected