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

Method deactivateConnection

Libraries/Http/HttpAsyncServer.cpp:434–446  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

432 }
433 }
434 };
435 SC_HTTP_ASSERT_RELEASE(client.response.getWritableStream().eventFinish.addListener(AfterWrite{*this, client}));
436
437 if (client.request.getBodyFramingKind() == HttpBodyFramingKind::None)
438 {
439 client.getReadableTransportStream().pause();
440 }
441 else if (client.request.getBodyFramingKind() == HttpBodyFramingKind::Chunked or
442 client.request.getBodyFramingKind() == HttpBodyFramingKind::ContentLength)
443 {
444 SC_HTTP_TRUST_RESULT(client.request.startBodyStream());
445 }
446 }
447}
448
449void HttpAsyncServer::onRequestBodyData(HttpConnection& client, AsyncBufferView::ID bufferID)

Callers 2

operator()Method · 0.80
operator()Method · 0.80

Calls 4

resetTransportStreamsMethod · 0.80
deactivateMethod · 0.80
closeMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected