-
Notifications
You must be signed in to change notification settings - Fork 38
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
Invert Request API #222
Comments
Are you looking to have this also fix #13 ? |
(around 0:32:00 to 0:35:00 in the above call, ICYC) |
!m @pjz |
Closing in favor of #526. |
I really do like that requests print as HTTP messages. I suppose HTTP/2 mucks with that, and of course WSGI is lossy so this isn't guaranteed the same as what's on the wire.
|
Do you have enough to go on to get started on this? |
It would be useful to clarify the problem(s) we're trying to fix, and whether we're okay with making lots of breaking changes or if we should try to maintain backward compatibility wherever possible. |
The problem is the confusion of wondering what type
The proposal here is that |
I meant: is this issue only about fixing a small confusion, or do we actually want to completely revisit both the Request and Response APIs as the issue's title suggests? |
Regarding the Response class, I think we should kill the |
So that is what
That sounds like a deep rabbit hole. I've narrowed the scope of this ticket. :) |
The current design of the verbose Request API has higher-order objects (Mappings, etc.) as the base value such as
request.line.uri.path
, with raw bytes in a.raw
attribute. This is confusing. Rather, all objects representing a fundamental part of an HTTP message should be a bytes subclass, with higher-order objects available as attributes.The text was updated successfully, but these errors were encountered: