cppalliance / http_proto

HTTP/1 parsing and serialization algorithms using C++11
https://develop.http-proto.cpp.al/
Boost Software License 1.0
23 stars 10 forks source link

`source` should be a nested type of `serializer` #70

Closed ashtum closed 6 months ago

ashtum commented 6 months ago

The reason:

source at namespace scope is too ambitious, it claims to be a vocabulary type when it cannot be (at least, not yet) while serializer::source at class scope is more specific, it is "what the serializer needs from a source of data to do its job." It doesn't have to be a universal vocabulary type.

https://cpplang.slack.com/archives/C02MQKSSMH8/p1709228949763109