[traffic] Implement HttpTraffSource

Signed-off-by: mvglasow <michael -at- vonglasow.com>
This commit is contained in:
mvglasow
2025-07-20 13:14:23 +03:00
parent a20d1453e0
commit 3f58c6ee20
8 changed files with 549 additions and 8 deletions

View File

@@ -456,6 +456,23 @@ std::string DebugPrint(EventType eventType)
UNREACHABLE();
}
std::string DebugPrint(ResponseStatus status)
{
switch (status)
{
case ResponseStatus::Ok: return "Ok";
case ResponseStatus::InvalidOperation: return "InvalidOperation";
case ResponseStatus::SubscriptionRejected: return "SubscriptionRejected";
case ResponseStatus::NotCovered: return "NotCovered";
case ResponseStatus::PartiallyCovered: return "PartiallyCovered";
case ResponseStatus::SubscriptionUnknown: return "SubscriptionUnknown";
case ResponseStatus::PushRejected: return "PushRejected";
case ResponseStatus::InternalError: return "InternalError";
case ResponseStatus::Invalid: return "Invalid";
}
UNREACHABLE();
}
std::string DebugPrint(TrafficImpact impact)
{
std::ostringstream os;