Sonde v1.1.0
Embeddable Model Context Protocol server for Qt applications
Loading...
Searching...
No Matches
Sonde::Http::anonymous_namespace{httpparser.cpp} Namespace Reference

Functions

ParseStatus readSizedBody (const QByteArray &buffer, qsizetype bodyStart, const ParseLimits &limits, Request *req, qsizetype *consumed, int *errorStatus)
 Reads a body by Content-Length (no header means an empty body).
ParseStatus readChunkedBody (const QByteArray &buffer, qsizetype bodyStart, const ParseLimits &limits, Request *req, qsizetype *consumed, int *errorStatus)
 Reads a chunked body.
qsizetype endOfTrailers (const QByteArray &buffer, qsizetype pos)
 Skips the trailer section after the last chunk, which starts at pos.

Function Documentation

◆ endOfTrailers()

qsizetype Sonde::Http::anonymous_namespace{httpparser.cpp}::endOfTrailers ( const QByteArray & buffer,
qsizetype pos )

Skips the trailer section after the last chunk, which starts at pos.

Returns
The position after the terminating blank line, or -1 if it hasn't arrived.