boost::burl::parser::buffered_data
Return the unconsumed octets in the buffer.
Synopsis
Declared in <boost/burl/parser.hpp>
std::array<capy::const_buffer, 2>
buffered_data() const noexcept;
Description
The returned octets are raw: no message framing is applied. After a message whose body has been read to completion they are the octets which follow it, which is how the remainder of a tunnel is recovered following a CONNECT request.
Note that the framing of a response to CONNECT cannot be determined from the response alone, so the parser reports a payload which continues to the end of the stream and has_buffered_data returns false. A caller which knows it issued a CONNECT should use this function directly.
If the body of a sized payload has only partially been read, the unread remainder is included.
See Also
has_buffered_data.
Created with MrDocs