h11
h11 copied to clipboard
A pure-Python, bring-your-own-I/O implementation of HTTP/1.1
Remove an undocumented function call in `examples/trio-server.py`.
the current Connection.next_event `Event | type[_Sentinel]` return type is [slightly painful to work with](https://github.com/encode/httpcore/pull/526/files#r901148647). It would be useful to have a version that returns enum based sentinels instead
Hello, I found some servers that return multiple trailing spaces on the chunk header. I changed the regex to match on those cases. This fixes issue #133
Python 2 support was dropped in v0.12.0 (2021-01-01). Looks like much of this comment could be removed now? There is no longer `self._start` or `self.compress` in the file: https://github.com/python-hyper/h11/blob/fb6c715184c6a1f29e299d2f63d722b2ea4309d5/h11/_receivebuffer.py#L23-L43 _Originally...
Remove `type: ignore` or at least be more specific about what's being ignored
Now trio 0.20.0 requires python 3.7 or later. But IMO it's not necessary to mention it here and update it every year.
See details: [1] https://trio.readthedocs.io/en/latest/reference-io.html#trio.abc.SendStream.send_all [2] https://h11.readthedocs.io/en/latest/api.html#h11.Connection.send_failed
Hi! I'm updating httpcore's type annotations (https://github.com/encode/httpcore/pull/526) to be compatible with the latest h11 version and encountering a difficulty with the type annotations on `next_event`. Since the return type includes...
As discussed in https://github.com/python-hyper/h11/pull/145#discussion_r836059998 Moves the comment to the proper location and rephrases it
Python 3.6 is at EOL and 3.10 was released around 2 months ago. This allows the conditional dataclasses requirement to be removed.