Closed MtkN1 closed 8 months ago
Thanks @MtkN1. If you (or anyone else) would like to work on this, a good starting point might be a PR that raises an exception in HTTP11Connection
/AsyncHTTP11Connection
whenever an Upgrade
/CONNECT
occurs.
Thank you @MtkN1 for contributing to close this issue! ⭐
The rewards from this issue, totalling $200, has been shared with you.
What now?
If you already have a Polar account setup, you don't need to do anything.
Wow, I'm surprised there's such a reward! I've set up Polar since I have a Stripe account 🙂
In cases of
CONNECT
andUpgrade
requests, it is necessary to handle the incoming data (h11.Connection.trailing_data
).https://h11.readthedocs.io/en/latest/api.html?highlight=trailing_data#switching-protocols
However, accessing
trailing_data
in HTTPCore requires a very lengthy property access.Making this accessible through the public API would be beneficial for developers using the
"network_stream"
.Related HTTPCore documentation: https://www.encode.io/httpcore/extensions/#network_stream
Here is what tomchristie suggested in the discussion. https://github.com/encode/httpcore/discussions/871#discussioncomment-8223419