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

Method route

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

Source from the content-addressed store, hash-verified

324}
325
326void Server::route(const string& method, const string& path, RouteHandler handler) {
327 mRoutes.push_back({method, path, handler});
328}
329
330void Server::get(const string& path, RouteHandler handler) {
331 route("GET", path, handler);

Callers 1

mainFunction · 0.80

Calls 5

to_httpd_methodFunction · 0.85
push_backMethod · 0.45
sizeMethod · 0.45
c_strMethod · 0.45
getMethod · 0.45

Tested by 1

mainFunction · 0.64