Boost logo

Boost :

Subject: Re: [boost] [beast] Chunking example
From: Bjorn Reese (breese_at_[hidden])
Date: 2017-07-02 17:54:12

On 07/02/2017 03:09 PM, Vinnie Falco via Boost wrote:

> parser<isRequest, buffer_body> p;
> read_header(stream, buffer, p, ec);
> if(ec)
> return;
> while(! p.is_done())
> {
> char buf[512];
> p.get() = buf;
> p.get().body.size = sizeof(buf);
> read(stream, buffer, p, ec);

If the above is used to read a chunked transfer, what happens to
chunk-ext fields? Are they inserted as header fields or are they

Given that this is an example of incremental reading, why does it
use read() rather than read_some()?

Boost list run by bdawes at, gregod at, cpdaniel at, john at