Skip to content

refactor: use Capy's CamelCase AwaitableDecomposesTo - #299

Merged
sgerbino merged 1 commit into
cppalliance:developfrom
sgerbino:pr/conform-capy-concept-names
Dec 4, 2026
Merged

sgerbino merged 1 commit into
cppalliance:developfrom
sgerbino:pr/conform-capy-concept-names

Conversation

@sgerbino

@sgerbino sgerbino commented Dec 4, 2026 •

Copy link
Copy Markdown
Collaborator

Capy renamed awaitable_decomposes_to to AwaitableDecomposesTo in cppalliance/capy#513, which is merged. Http's develop does not compile against Capy's develop until this lands.

The ReadSource, WriteSink, BufferSource and BufferSink concepts now use the new name. The #include <boost/capy/concept/decomposes_to.hpp> lines are unchanged because the header kept its file name.

Summary by CodeRabbit

  • Refactor
    • Updated compile-time checks for HTTP buffer, read, and write interfaces to use the current awaitable concept. The required result types and interface behavior remain unchanged; no user-facing functionality has changed.

Capy renamed awaitable_decomposes_to to AwaitableDecomposesTo
(cppalliance/capy#513). The ReadSource, WriteSink, BufferSource and
BufferSink concepts now use the new name.
@coderabbitai

coderabbitai Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The BufferSink, BufferSource, ReadSource, and WriteSink concepts now use capy::AwaitableDecomposesTo in their awaitable constraints. The documented concept reference is updated. Required decomposed result types remain unchanged.

Changes: Awaitable concept name update

Layer / File(s) Summary
Update awaitable constraints
include/boost/http/concept/buffer_sink.hpp, include/boost/http/concept/buffer_source.hpp, include/boost/http/concept/read_source.hpp, include/boost/http/concept/write_sink.hpp
The four concepts use capy::AwaitableDecomposesTo instead of capy::awaitable_decomposes_to. Their required decomposed result types are unchanged.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Refactor

Suggested reviewers: mvandeberg

Merge Risk: Minimal · up to eb476

This updates four public concepts to Capy's renamed awaitable concept and has no behavior change beyond requiring the new Capy name. It must land together with the matching Capy change, as the PR states. No actionable merge risk remains.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title 'refactor: use Capy's CamelCase AwaitableDecomposesTo' matches the changeset. The four concepts (BufferSink, BufferSource, ReadSource, WriteSink) switch from the lowercase capy::awaitable_de…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title 'refactor: use Capy's CamelCase AwaitableDecomposesTo' matches the changeset. The four concepts (BufferSink, BufferSource, ReadSource, WriteSink) switch from the lowercase capy::awaitable_decomposes_to trait to capy::AwaitableDecomposesTo, as the raw summary and PR objectives describe. The title names the main change and the new identifier. It does not list every file, which is acceptable.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

A rabbit checked the concepts with care,
New awaitable names now appear there.
The result types stay the same,
Each constraint bears the new name,
Then the rabbit hops off to its lair.

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between d353578 and eb476ac.

Files selected for processing: 4

  • include/boost/http/concept/buffer_sink.hpp
  • include/boost/http/concept/buffer_source.hpp
  • include/boost/http/concept/read_source.hpp
  • include/boost/http/concept/write_sink.hpp

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@cppalliance-bot

Copy link
Copy Markdown

An automated preview of the documentation is available at https://299.http.prtest3.cppalliance.org/index.html

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

2026-12-04 18:14:05 UTC

@sgerbino
sgerbino merged commit 7d87344 into cppalliance:develop Dec 4, 2026
13 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in Beast2 Dec 4, 2026
@sgerbino
sgerbino deleted the pr/conform-capy-concept-names branch December 4, 2026 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants