httpx/tests/models
Gianni Tedesco 85c5898d8e
Change LineDecoder to match stdlib splitlines, resulting in significant speed up (#2423)
* Replace quadratic algo in LineDecoder

Leading to enormous speedups when doing things such as
Response(...).iter_lines() as described on issue #2422

* Update httpx/_decoders.py

* Update _decoders.py

Handle text ending in `\r` more gracefully.
Return as much content as possible.

* Update test_decoders.py

* Update _decoders.py

* Update _decoders.py

* Update _decoders.py

* Update httpx/_decoders.py

Co-authored-by: cdeler <serj.krotov@gmail.com>

* Update _decoders.py

---------

Co-authored-by: Tom Christie <tom@tomchristie.com>
Co-authored-by: cdeler <serj.krotov@gmail.com>
2023-03-16 14:29:15 +00:00
..
__init__.py Tweak test naming 2019-05-17 13:49:24 +01:00
test_cookies.py Add repr to Cookies for displaying available cookies (#1411) 2020-12-03 22:06:42 +01:00
test_headers.py Support header comparisons with dict or list. (#1326) 2020-09-25 12:28:34 +01:00
test_queryparams.py Revert "Raise TypeError on invalid query params. (#2523)" (#2539) 2023-01-04 09:23:32 +00:00
test_requests.py replace pytest-asyncio and pytest-trio with anyio (#2512) 2023-01-02 12:53:30 +00:00
test_responses.py Change LineDecoder to match stdlib splitlines, resulting in significant speed up (#2423) 2023-03-16 14:29:15 +00:00
test_url.py Use '%20' for encoding spaces in query parameters. (#2543) 2023-01-10 11:16:09 +00:00