FastLED 3.9.15
Loading...
Searching...
No Matches
http.h File Reference

Detailed Description

fl::net::http — High-level HTTP client and server facade

Re-exports existing fetch client and HTTP server types under a unified namespace. All implementation lives in fl/stl/asio/; this header is a thin organizational layer.

#include "fl/net/http.h"
// Client
fl::net::http::fetch_get("http://example.com")
.then([](const fl::net::http::Response& r) { ... });
// Server
fl::net::http::Server srv;
srv.get("/", [](const fl::net::http::Request& req) {
return fl::net::http::ServerResponse::ok("Hello");
});
srv.start(8080);
HTTP response class (unified interface)
Definition fetch.h:78
fl::net::http — High-level HTTP client and server facade
fl::task::Promise< Response > fetch_get(const fl::string &url, const FetchOptions &request)
HTTP GET request.

Definition in file http.h.

+ Include dependency graph for http.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.