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

Method startSendingBody

Tests/Libraries/Http/HttpTestClient.cpp:343–350  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

341}
342
343void SC::HttpTestClient::startSendingBody(AsyncLoopTimeout::Result&)
344{
345 sendAsync.callback.bind<HttpTestClient, &HttpTestClient::startReceiveResponse>(*this);
346 Span<const char> bodySpan;
347 SC_ASSERT_RELEASE(content.toSpanConst().sliceStart(headerBytes, bodySpan));
348 auto res = sendAsync.start(*eventLoop, clientSocket, bodySpan);
349 SC_ASSERT_RELEASE(res);
350}
351
352void SC::HttpTestClient::startReceiveResponse(AsyncSocketSend::Result& result)
353{

Callers

nothing calls this directly

Calls 2

sliceStartMethod · 0.80
startMethod · 0.45

Tested by

no test coverage detected