boostorg / boostorg/beast

Movable HTTP messages, parsers, serializers, and corresponding stream algorithms

Open
#1,139 10 comments 1 reaction 0 assignees View on GitHub
Design
Dominant language
C++
Stars
4.8k
Forks
694
Avg merge
12h 48m
Merged PRs (30d)
1

Description

beast use a lot of L value ref as parameter, sometimes this makes it really painful to design my class

for example:

`http:async_write` takes either a `message&` or `serializer&`, which means something else need to hold the value until the callback is done.

but very often I generated this message or serializer in function body that doesn't own any data structure to store it. this force me to redesign the class, many lines of code are added to make sure messages are kept in memory until callback is called

if functions like `async_write` can have a version to accept a R value ref and store it internally. my class would be much simpler and easy to read

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.