Files
moloapp/example/fw/Negotiate.hpp
T
retoor 3c4334cec9 feat: implement MoloApp plans 01-15 with integration
Full C++23 framework tree: runtime, observability, security,
data, app, realtime, supervisor, clients, CLI, example plus
enterprise tenancy, audit, operability, governance,
supplychain. Postgres via docker compose for tests.
2026-10-23 18:20:04 +02:00

23 lines
534 B
C++

#pragma once
// Server-driven content negotiation: parses Accept with q weights, picks one
// handler-declared format, answers 406 when nothing matches.
// Gap: real molo::negotiate in 05-request-routing.md owns suffix and
// format-override rules.
#include <string>
#include <vector>
#include "App.hpp"
namespace molo::example::fw {
struct Offer {
std::string media_type;
};
std::string negotiate(const std::string& accept,
const std::vector<std::string>& available);
} // namespace molo::example::fw