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

Method init

Libraries/Http/HttpConnection.cpp:828–837  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

826HttpOutgoingMessage::ChunkedWritableStream::ChunkedWritableStream() { setWriteQueue(queue); }
827
828Result HttpOutgoingMessage::ChunkedWritableStream::init(AsyncBuffersPool& buffersPool,
829 AsyncWritableStream& newDestination)
830{
831 destination = &newDestination;
832 currentBodyBufferID = {};
833 currentBodyCallback = {};
834 finalChunkStarted = false;
835 finalChunkWritten = false;
836 return AsyncWritableStream::init(buffersPool);
837}
838
839Result HttpOutgoingMessage::ChunkedWritableStream::asyncWrite(AsyncBufferView::ID bufferID,
840 Function<void(AsyncBufferView::ID)> cb)

Callers 2

sendHeadersMethod · 0.45
setCompressedBodyMethod · 0.45

Calls 4

initFunction · 0.85
ErrorEnum · 0.50
ResultClass · 0.50
sizeInBytesMethod · 0.45

Tested by

no test coverage detected