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

request/response verification helpers #65

Open cmazakas opened 8 months ago

cmazakas commented 8 months ago

In some cases, it's easiest to determine the validity of a message once the headers are complete (i.e. the closing \r\n has been parsed).

To aid users in checking if their messages are rfc-compliant, we introduce a prototype API:

result<void> validate(response_view const&);
result<void> validate(request_view const&);

Validity Requirements (incomplete):