WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Conversation

@MungoG
Copy link
Contributor

@MungoG MungoG commented Dec 22, 2025

Add new API to set message headers separately from starting serialization. This allows setting headers once and then choosing the body style (empty, buffers, source, or stream) in a second step.

New public methods:

  • set_headers(message_base const&)
  • start() - empty body
  • start(ConstBufferSequence&&) - buffer sequence body
  • start(Args&&...) - source body
  • start_stream() - stream body

The original start functions that take message_base remain for backward compatibility.

🤖 Generated with Claude Code

@cppalliance-bot
Copy link

cppalliance-bot commented Dec 22, 2025

An automated preview of the documentation is available at https://232.http-proto.prtest.cppalliance.org/index.html

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

2025-12-22 14:43:46 UTC

@cppalliance-bot
Copy link

cppalliance-bot commented Dec 22, 2025

MungoG and others added 2 commits December 22, 2025 13:41
Add new API to set message headers separately from starting
serialization. This allows setting headers once and then choosing
the body style (empty, buffers, source, or stream) in a second step.

New public methods:
- set_headers(message_base const&)
- start() - empty body
- start(ConstBufferSequence&&) - buffer sequence body
- start<Source>(Args&&...) - source body
- start_stream() - stream body

The original start functions that take message_base remain for
backward compatibility and are now implemented in terms of the
new set_headers + start pattern.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@MungoG MungoG force-pushed the claude-serializer-separation branch from c7401aa to e26027a Compare December 22, 2025 14:36
serializer::
start()
{
static_assert(
Copy link
Member

Choose a reason for hiding this comment

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

we use BOOST_STATIC_ASSERT

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