#include "../resolver/resolver.h" #include "http_negotiation.hpp" #include "http_negotiation.h" #include namespace sleela { std::string negotiate_http(const std::string &requested, const std::string &peer_accept, bool allow_fallback) { if (!sleela_resolver_event_policy("HTTP/1.0", 0)) return std::string(); const char *v = sleela_http_negotiate(requested.c_str(), peer_accept.c_str(), allow_fallback ? 1 : 0); return v ? std::string(v) : std::string(); } } /* namespace sleela */