MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / onEnd

Method onEnd

Tests/Libraries/Http/HttpAsyncClientTest.cpp:1078–1090  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1076
1077 httpServer.onRequest = [this, &serverCtx](HttpConnection& connection)
1078 {
1079 serverCtx.connection = &connection;
1080 const bool addedData =
1081 connection.request.getReadableStream().eventData.addListener<ServerContext, &ServerContext::onData>(
1082 serverCtx);
1083 SC_TEST_EXPECT(addedData);
1084 const bool addedEnd =
1085 connection.request.getReadableStream().eventEnd.addListener<ServerContext, &ServerContext::onEnd>(
1086 serverCtx);
1087 SC_TEST_EXPECT(addedEnd);
1088 };
1089
1090 ClientConnection clientStorage;
1091 HttpAsyncClient client;
1092 ResponseCollector collector;
1093 ChunkedBodyStream bodyStream;

Callers

nothing calls this directly

Calls 9

StringSpanFunction · 0.85
decompressForTestFunction · 0.85
startResponseMethod · 0.80
sendHeadersMethod · 0.80
recordExpectationMethod · 0.80
addHeaderMethod · 0.45
writeMethod · 0.45
endMethod · 0.45
getHeaderMethod · 0.45

Tested by

no test coverage detected