Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Parser.consume #2913

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

Draft
klemens-morgenstern wants to merge 3 commits into boostorg:develop
base: develop
Choose a base branch
Loading
from klemens-morgenstern:parser.consume

Conversation

Copy link
Contributor

@klemens-morgenstern klemens-morgenstern commented Aug 1, 2024

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.

@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

@vinniefalco vinniefalco Aug 1, 2024

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
Contributor Author

@klemens-morgenstern klemens-morgenstern Aug 1, 2024

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

@vinniefalco vinniefalco Aug 2, 2024

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

@vinniefalco vinniefalco Aug 2, 2024

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
edited
Loading

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 62 commits behind head on develop.

Files with missing lines 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 with missing lines 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.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@vinniefalco vinniefalco vinniefalco left review comments

@ashtum ashtum ashtum left review comments

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /