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.
16 lines
471 B
C++
16 lines
471 B
C++
// Route: GET /streaming/feed
|
|
#include "support/Assert.hpp"
|
|
|
|
using namespace molo::example::test;
|
|
|
|
int main() {
|
|
Fixture f;
|
|
auto res = f.client->get("/streaming/feed");
|
|
check(res.status == 200, "status 200");
|
|
check(res.headers.get("Transfer-Encoding") == "chunked",
|
|
"chunked encoding marked");
|
|
check(contains(res.body, "chunk-1"), "first chunk present");
|
|
check(contains(res.body, "chunk-3"), "last chunk present");
|
|
return finish("streaming/feed");
|
|
}
|