boostorg / boostorg/beast

Provide a method to determine serialization state (number of bytes of the body transferred)

Open
#1,787 0 comments 0 reactions 0 assignees View on GitHub
Feature
Dominant language
C++
Stars
4.8k
Forks
694
Avg merge
12h 48m
Merged PRs (30d)
1

Description

This is the new issue I was supposed to create (https://github.com/boostorg/beast/issues/1677#issuecomment-520880599), sorry it took so long.

I need a way to determine after a call to `async_write_some(stream, serializer, handler)` how many bytes of the body were written (either in that write op or in total).

Note that I'm not interested in the number of bytes transferred (since that may be more due to chunked encoding), and it might be nice if this would work without setting `serializer::split(true)`, i.e. I'm not interested in the header bytes transferred...

I'm open to computing the totals myself, but it must be possible to do so, which it currently isn't...

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.