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

Method resetIncoming

Libraries/Http/HttpConnection.cpp:347–361  ·  view source on GitHub ↗

------------------------------------------------------------------------------------------------------- HttpIncomingMessage -------------------------------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

345// HttpIncomingMessage
346//-------------------------------------------------------------------------------------------------------
347void HttpIncomingMessage::resetIncoming(HttpParser::Type type, Span<char> memory)
348{
349 bodyStream.destroy();
350 headerMemory = memory;
351 readableStream = &bodyStream;
352 bodyBytesRemaining = 0;
353 bodyFramingKind = HttpBodyFramingKind::None;
354 bodyComplete = true;
355 bodyStreamStarted = false;
356 chunkedState = ChunkedState::Size;
357 chunkedChunkSize = 0;
358 chunkedBytesRemaining = 0;
359 chunkedSizeHasDigits = false;
360 parsedHeaders.reset(type, memory);
361}
362
363HttpIncomingMessage::BodyStream::BodyStream()
364{

Callers

nothing calls this directly

Calls 2

destroyMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected