Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parser.consume #2913

Draft
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

klemens-morgenstern
Copy link
Collaborator

I want to write a stream API for http.

I will also need a buffer to reset a previously returned buffer from a body-writer.

@@ -100,7 +100,7 @@ write_some(

@param ec Set to indicate what error occurred, if any.

@return The number of bytes written to the stream.
@return The number of bytes read from the body.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a breaking API change...

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, and one that is overdue.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The meaning of the return value used to be different from what it is now. We changed it because of user requests. If we change it again, then we are breaking those users.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The meaning of the return value used to be different from what it is now. We changed it because of user requests. If we change it again, then we are breaking those users.

Wasn't that for async_read_some? #1942

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe. I think you should decide if this is a good change. And if not, what else we might do (if anything).

Copy link

codecov bot commented Aug 1, 2024

Codecov Report

Attention: Patch coverage is 97.59036% with 2 lines in your changes missing coverage. Please review.

Project coverage is 93.08%. Comparing base (fee9be0) to head (83725e0).
Report is 2 commits behind head on develop.

Files Patch % Lines
include/boost/beast/http/impl/serializer.hpp 97.22% 2 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #2913      +/-   ##
===========================================
- Coverage    93.09%   93.08%   -0.02%     
===========================================
  Files          177      177              
  Lines        13709    13773      +64     
===========================================
+ Hits         12763    12821      +58     
- Misses         946      952       +6     
Files Coverage Δ
include/boost/beast/core/buffers_cat.hpp 100.00% <100.00%> (ø)
include/boost/beast/core/buffers_suffix.hpp 100.00% <100.00%> (ø)
include/boost/beast/http/impl/write.hpp 92.13% <100.00%> (+0.06%) ⬆️
include/boost/beast/http/serializer.hpp 90.90% <ø> (ø)
include/boost/beast/http/impl/serializer.hpp 91.48% <97.22%> (+1.13%) ⬆️

... and 1 file with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fee9be0...83725e0. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants