Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

request/response verification helpers #65

Open
cmazakas opened this issue Feb 16, 2024 · 0 comments
Open

request/response verification helpers #65

cmazakas opened this issue Feb 16, 2024 · 0 comments

Comments

@cmazakas
Copy link
Collaborator

cmazakas commented Feb 16, 2024

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):

  • A client MUST NOT generate a 100-continue expectation in a request that does not include content.
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

No branches or pull requests

1 participant