Tom Christie
3046e920ea
Httpcore interface ( #804 )
...
* First pass as switching dispatchers over to httpcore interface
* Updates for httpcore interface
* headers in dispatch API as plain list of bytes
* Integrate against httpcore 0.6
* Integrate against httpcore interface
* Drop UDS, since not supported by httpcore
* Fix base class for mock dispatchers in tests
* Merge master and mark as potential '0.13.dev0' release
2020-04-08 13:32:10 +01:00
Florimond Manca
82dc6f32f8
Switch to private module names ( #785 )
...
* Rename modules
* Update names in package
* Fix tests
* Review docs
2020-01-28 14:34:43 +00:00
Florimond Manca
e284b84bf9
Rename Client to AsyncClient (with compat synonym) ( #680 )
...
* Rename Client to AsyncClient (with compat synonym)
* Document motivation for AsyncClient renaming
Co-authored-by: Tom Christie <tom@tomchristie.com>
2019-12-29 15:34:23 +00:00
Tom Christie
abe0799d70
Refactor netrc handling ( #558 )
...
* Refactor netrc handling
* Linting
* Import sorting
* Import sorting
2019-11-28 12:31:15 +00:00
Tom Christie
206c5372a6
Drop sync ( #544 )
...
Drop sync client
2019-11-27 10:43:42 +00:00
Florimond Manca
08069e9368
Add DEBUG logs of HTTP requests ( #502 )
2019-11-06 22:56:25 +01:00
Florimond Manca
2fcf23bbfe
Refactor debug and trace log tests ( #506 )
2019-11-06 12:04:20 +01:00
Florimond Manca
07586f97e8
Convert debug logs to trace logs ( #500 )
...
* Convert debug logs to trace logs
* Update environment variables docs
* Update logging test
2019-11-02 22:40:15 +01:00
mariaS210
7200717e82
Add logic for determining if a URL should be proxied ( #472 )
2019-10-17 10:58:11 -05:00
Can Sarıgöl
84731c8be5
Cache netrc authentication per-client ( #400 )
2019-10-16 08:31:47 -05:00
camellia256
49ed77a706
Rely on getproxies for all proxy environment variables ( #470 )
2019-10-12 10:34:50 -05:00
Florimond Manca
e62e5c3758
Add debug logs to ASGIDispatch ( #371 )
...
* Add debug logs to ASGIDispatch
* Tidy up ASGIDispatch
* Log entire scope and ASGI messages
* Obfuscate sensitive headers using common utility
* Update utils.py
2019-09-23 22:49:24 +02:00
Can Sarıgöl
c9810a79d9
Add support for SSL_CERT_FILE and SSL_CERT_DIR ( #307 )
2019-09-23 10:24:53 -05:00
Seth Michael Larson
b0fa0859a8
Configure Proxy from Client ( #353 )
...
* Incorporate suggestions
* Start of proxy config
* Incorporate suggestions
* Add proxies to high-level API, docs
* Update client.py
2019-09-20 12:33:06 -05:00
Roy Williams
05ac117679
Add .elapsed onto Response objects tracking how long a request took. ( #351 )
...
* Add `.elapsed` onto Response objects tracking how long a request took.
* Move elapsed timing from send methods into _get_response
* Address feedback
* Update tests/test_api.py
Co-Authored-By: Florimond Manca <florimond.manca@gmail.com>
2019-09-18 20:29:01 +02:00
Bakhtiyor Ruziev
e34d280673
Add server.url property in tests ( #300 )
...
* Add server.url to test server
* Move a property to top of the class
2019-09-01 09:07:22 +02:00
Seth Michael Larson
6f4f186522
Add easier debug logging for users ( #277 )
...
Co-Authored-By: Florimond Manca <florimond.manca@gmail.com>
2019-08-27 11:43:13 -05:00
euri10
cad9c03500
Added links property to BaseResponse ( #211 )
...
* Added docstring and better typing for parsed_header_links
* Added docstring and better typing for links property
Added tests for it too
* Added --diff to black check to see where CI fails
Relaxed travis build on master only
* Fixed black issue removing a \t
* Put noxfile and travis.yml as they were before
2019-08-16 09:07:52 -05:00
Can Sarıgöl
9536b76f5c
Fail unit tests without 100% coverage ( #206 )
2019-08-14 21:45:28 -05:00
Seth Michael Larson
80dc3e274e
Use nox for automation and CI ( #128 )
2019-08-13 08:39:35 -05:00
Can Sarıgöl
919e8d3f9b
added netrc support ( #177 )
2019-08-01 09:32:00 +01:00
Tom Christie
2d09d5b36c
Renaming -> httpx ( #129 )
...
* Renaming -> httpx
* Renaming to httpx
2019-07-19 15:15:16 +01:00
Yeray Diaz Diaz
5442006a41
Encoding detection in Response.json ( #116 )
...
* Use response text on `json`
Pass kwargs to the loads call
* Add failing test demonstrating corner case
* Copy `guess_json_utf` function from requests
* "Fix" type hinting and lint
* Actually add tests_utils.py
2019-07-11 17:14:58 +01:00