Skip to content

EntropyEngine::Networking::WebDAV::WebDAVConnection::StreamState

EntropyEngine::Networking::WebDAV::WebDAVConnection::StreamState

Section titled “EntropyEngine::Networking::WebDAV::WebDAVConnection::StreamState”

Internal state for streaming GET operations. More…

#include <WebDAVConnection.h>

Name
size_ttail
Write index.
intstatusCode
HTTP status code (e.g., 200, 404).
size_tsize
Bytes currently stored.
size_treceivedTotal
Byte counter for cap enforcement.
boolparserPaused
true if llhttp parser is paused due to backpressure
size_tmaxBodyBytes
Hard safety cap across whole message.
std::mutexm
Protects ring buffer state.
boolheadersReady
true when HTTP headers parsed
std::unordered_map< std::string, std::string >headers
Response headers (lowercase keys).
size_thead
Read index.
std::stringfailureReason
Error description if failed.
boolfailed
true on parse or network error
booldone
true when response complete
std::condition_variablecv
Signals data available/consumed.
std::stringcurHeaderValue
Temp accumulator for header value.
std::stringcurHeaderField
Temp accumulator for header field.
size_tcapacity
Total capacity (buf.size()).
std::vector< uint8_t >buf
Ring buffer storage.
struct EntropyEngine::Networking::WebDAV::WebDAVConnection::StreamState;

Internal state for streaming GET operations.

Ring buffer state shared between HTTP parser (producer) and WebDAVReadStream (consumer). Protected by mutex with condition variable.

size_t tail = 0;

Write index.

int statusCode = 0;

HTTP status code (e.g., 200, 404).

size_t size = 0;

Bytes currently stored.

size_t receivedTotal = 0;

Byte counter for cap enforcement.

bool parserPaused = false;

true if llhttp parser is paused due to backpressure

size_t maxBodyBytes = 0;

Hard safety cap across whole message.

std::mutex m;

Protects ring buffer state.

bool headersReady = false;

true when HTTP headers parsed

std::unordered_map< std::string, std::string > headers;

Response headers (lowercase keys).

size_t head = 0;

Read index.

std::string failureReason;

Error description if failed.

bool failed = false;

true on parse or network error

bool done = false;

true when response complete

std::condition_variable cv;

Signals data available/consumed.

std::string curHeaderValue;

Temp accumulator for header value.

std::string curHeaderField;

Temp accumulator for header field.

size_t capacity = 0;

Total capacity (buf.size()).

std::vector< uint8_t > buf;

Ring buffer storage.


Updated on 2026-01-26 at 17:14:35 -0500