-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Disable body parameter in HTTPException constructor #3385
Comments
GitMate.io thinks possibly related issues are #593 (Add charset parameter to web.Response constructor), #1992 ([enhancement] Add ability to disable automatic decompression of body), #193 (Should aiohttp.web.Response accept body as positional parameter?), #2067 (Disable Cookie Handling), and #2262 (Disable DNS cache). |
Does it mean, that I can't send back a binary here? I have a requirement to communicate using binary protocol and this change is breaking my ability to use exceptions |
Why do you need to use exceptions for such communication? |
I don't need to check very-special-values when return from the function and able to throw an HTTP error. I agree, that not every http response require/accept a body at all. |
In my case I want to provide client with some additional contextual information where the error occurred. |
Now the exception can be created with either
body
ortext
.It over complicates things in a light of removing inheritance from
web.Response
.Let's deprecate
body
before changing the inheritance hierarchy.The text was updated successfully, but these errors were encountered: