17 std::string
render(
const std::map<std::string, std::string> & = {})
const override
Abstract base class for all views in the PicoFramework.
Defines the HttpRequest class for handling HTTP requests: headers, method, path, query string,...
HTTP HttpResponse class for managing status, headers, body, and streaming support.
StaticView sends a fixed HTML string with no template substitution.
std::string render(const std::map< std::string, std::string > &={}) const override
Render the view body.
std::string getContentType() const override
Return the MIME content type for this view.
StaticView(const char *html)