Skip to content

Conversation

MungoG
Copy link
Collaborator

@MungoG MungoG commented Oct 16, 2025

Implementation for the body_read_stream part of #55


#include <boost/http_io/detail/config.hpp>
#include <boost/http_proto/request_parser.hpp>
#include <boost/http_proto/response_parser.hpp>
Copy link
Member

Choose a reason for hiding this comment

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

you should be able to get away with just parser.hpp instead of these other two

#include <boost/http_proto/response_parser.hpp>
#include <boost/asio/async_result.hpp>
#include <boost/system/error_code.hpp>
#include <boost/system/result.hpp>
Copy link
Member

Choose a reason for hiding this comment

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

I don't think result.hpp is going to help?


template<class UnderlyingAsyncReadStream>
body_read_stream<UnderlyingAsyncReadStream>::body_read_stream(
const rts::context& rts_ctx
Copy link
Member

Choose a reason for hiding this comment

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

I don't think the context is needed

namespace http_io {

template<class UnderlyingAsyncReadStream>
class body_read_stream {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Note to self: add get_executor()


namespace detail {

template <class MutableBufferSequence, class UnderlyingAsyncReadStream>
Copy link
Member

Choose a reason for hiding this comment

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

Maybe just Stream would suffice instead of UnderlyingAsyncReadStreamToUseForTheNextLayer?

@cppalliance-bot
Copy link

cppalliance-bot commented Oct 20, 2025

An automated preview of the documentation is available at https://57.http-io.prtest2.cppalliance.org/index.html

If more commits are pushed to the pull request, the docs will rebuild at the same URL.

2025-10-20 18:03:41 UTC

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