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

Return the response body in HTTPUpgradeError "notAnUpgrade" #1005

Open
mefsantos opened this issue Feb 23, 2024 · 0 comments
Open

Return the response body in HTTPUpgradeError "notAnUpgrade" #1005

mefsantos opened this issue Feb 23, 2024 · 0 comments

Comments

@mefsantos
Copy link

What do you want to happen?

I would like to receive the response body whenever an upgrade error occurs

What happens now?

until version 4.0.6, the HTTPUpgradeError.notAnUpgrade provides the response code and headers

Demo Code

Any demo code that may used to implement/use the desired feature.

Describe alternatives you've considered

add an additional associated value to the enum like: notAnUpgrade(Int, [String: String], Data?)

Additional context

Some times, additional context can be provided in upgrade error responses via the response body which, is currently unaccessible

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