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

Using InvalidRequest instead of HTTP2Error #890

Merged
merged 3 commits into from
Jul 25, 2022

Conversation

kazu-yamamoto
Copy link
Contributor

I'm preparing http2 lib v4 since RFC9113 was published. http2 v4 discovered a flaw of #741.

413 and 431 is in the semantics level while HTTP2Error is in the transport level. It is mis-use that a response status code is contained in ConnectionError.

My review of #741 was not good enough. I'm very sorry.

I would like to add RequestHeaderFieldsTooLarge and PayloadTooLarge to InvalidRequest and use them instead of ConnectionError. This reduces the dependency from wai-extra to http2.

This PR also contains preparation for http2 v4.

Cc: @michalrus and @vlatkoB

@kazu-yamamoto kazu-yamamoto changed the title Proper http2 Using InvalidRequest instead of HTTP2Error Jul 22, 2022
Copy link
Member

@snoyberg snoyberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@kazu-yamamoto
Copy link
Contributor Author

Thanks. I will merge this in the next week.

413 and 431 is in the semantics level while HTTP2Error is in the
transport level. It is mis-use that response status is contained
in ConnectionError.
@kazu-yamamoto kazu-yamamoto merged commit 91d2361 into yesodweb:master Jul 25, 2022
@kazu-yamamoto kazu-yamamoto deleted the proper-http2 branch July 25, 2022 04:01
@kazu-yamamoto
Copy link
Contributor Author

Rebased and merged.

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

Successfully merging this pull request may close these issues.

None yet

2 participants