Tom Christie
bafa32aa67
Update HTTP/2 docs
2020-05-22 10:16:08 +01:00
Tom Christie
2c2c6a71a9
Version 0.13 ( #971 )
...
* Version 0.13
* Update docs to 0.13 as the latest
* Whitespacing tweak
* More explicit notes about transport API renamings
* Update changelog
Co-authored-by: florimondmanca <florimond.manca@gmail.com>
2020-05-22 09:41:02 +01:00
Florimond Manca
a58be59adb
Add note on streaming uploads ( #973 )
2020-05-21 16:13:16 +02:00
Tom Christie
99a5c78bbb
Update dependencies in docs ( #969 )
...
* Update dependencies in docs
* Update README.md
Co-authored-by: Florimond Manca <florimond.manca@gmail.com>
* Update docs/index.md
Co-authored-by: Florimond Manca <florimond.manca@gmail.com>
Co-authored-by: Florimond Manca <florimond.manca@gmail.com>
2020-05-21 13:43:34 +01:00
Tom Christie
991915a935
Rename pool limit options ( #968 )
...
* Pass proxy_url
* Rename hard_limit/soft_limit
* Use 'warn_deprecated' function
* Update PoolLimits docs
* Linting
* Update httpcore dependancy
* Update port in Transport API to be 'Optional[int]'
2020-05-21 13:26:20 +01:00
Yeray Diaz Diaz
d2816c9c48
Transport API ( #963 )
...
* Deprecate Client arg 'dispatch' and use 'transport'
* Remove line in test from coverage
* Document custom transports
* _dispatch > _transports
Also rename *Dispatch classes to *Transport and added aliases
* Fix linting issues
* Missed one _transports import
* Promote URLLib3Transport to public API
* Remove duplicate arg doc
* Assert that urllib3 is imported to use URLLib3Transport
* `AsyncClient`, not asynchronous `Client`
* Add warning category to warn calls
* Update docs/advanced.md
Co-authored-by: Florimond Manca <florimond.manca@gmail.com>
* Add warn_deprecated utility function
* Amend docs references to dispatch
* Add concrete implementation example
* Clearer transport implementation description
Co-authored-by: Florimond Manca <florimond.manca@gmail.com>
2020-05-21 12:22:17 +01:00
Yeray Diaz Diaz
790a3ead5d
Document pool_limits and SSL context on verify ( #942 )
...
Co-authored-by: Tom Christie <tom@tomchristie.com>
2020-05-13 11:53:35 +01:00
Yeray Diaz Diaz
afbd4c846a
Document dev proxy setup ( #933 )
2020-05-06 12:11:05 +01:00
Ryan Balfanz
3b9ebe0523
Fix small typo ( #920 )
2020-05-01 20:37:01 +02:00
Tom Christie
bed3d8bd38
Version 0.13.0.dev0 ( #915 )
...
* Version 0.13.0.dev0
* Bump httpcore
* Include packaging in requirements
* Include note on UDS support
* Update CHANGELOG
2020-04-30 17:09:49 +01:00
Tom Christie
19bf2112a1
Test Suite on GitHub Actions ( #907 )
...
* Test Suite on GitHub Actions
* Add linting checks
* Update badges. Drop unused codecov, pending GitHub action support,
2020-04-24 16:46:45 +01:00
Ed Singleton
fc980e7792
Fix Client Docstring and add AsyncClient to API docs ( #883 )
...
* Fix docstring of Client
* Add AsyncClient to API docs
* Add AsyncClient to ToC
Co-Authored-By: Florimond Manca <florimond.manca@gmail.com>
Co-authored-by: Florimond Manca <florimond.manca@gmail.com>
2020-03-28 17:22:10 +01:00
Florimond Manca
21f533774f
Add 'Third Party Packages' docs page ( #876 )
2020-03-26 15:43:04 +01:00
Srikanth Chekuri
5cf1acc403
Add docs on request instances to Requests compatibility guide ( #823 )
...
* Update docs/compatibility.md
* Add prepare_request equivalent of httpx to compatibility document
* Add difference b/w httpx.Request and requests.Request arguments to compatibility document
* Update docs/compatibility.md
* Remove Request arguments section
* Add new section Request instantiation with necessary info
* Update docs/compatibility.md
Commit the suggested changes
Co-Authored-By: Florimond Manca <florimond.manca@gmail.com>
Co-authored-by: Florimond Manca <florimond.manca@gmail.com>
2020-03-25 22:33:16 +01:00
Tom Christie
6e40c1b26a
Version 0.12 ( #852 )
...
* Version 0.12
* Update docs to reference 0.12
2020-03-09 10:18:34 +00:00
Florimond Manca
7256366ba9
Revamp docs on Client instances ( #836 )
...
* Revamp docs on Client instances
* Apply suggestions from code review
Co-Authored-By: Hugo van Kemenade <hugovk@users.noreply.github.com>
* Reword 'Why use a Client?' section
* Apply suggestions from code review
Co-Authored-By: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2020-03-01 21:38:01 +01:00
Florimond Manca
53804173bb
Drop backend parameter on AsyncClient ( #791 )
...
* Drop backend parameter on AsyncClient
* Fix master merge
Co-authored-by: Tom Christie <tom@tomchristie.com>
2020-02-27 20:42:18 +00:00
Tom Christie
db33c071e1
Add 'chat' to docs ( #818 )
2020-02-19 11:38:14 +00:00
George Kettleborough
b3db9ff0b6
Add Auth.requires_response_body attribute ( #803 )
...
* Add Auth.requires_response_body attribute
If set then responses are read by the client before being sent back into the auth flow
* Update tests and docs
* PR fixes
* Change example methods
2020-02-10 12:10:11 +00:00
Colin Bounouar
cfe2278096
Document that iter_* methods are synchronous ( #807 )
2020-02-06 13:40:42 +01:00
Florimond Manca
6614831739
Use a base_url in app dispatcher examples ( #799 )
2020-02-03 13:05:56 +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
Yeray Diaz Diaz
b23420392e
Detect credentials in proxy URLs and create Proxy-authorization header ( #780 )
...
* Detect auth in proxy URLs and create Proxy-authorization header
* Add credentials and SOCKS details to proxy documentation
* Use URL.copy_with to remove credentials from URL
2020-01-20 13:50:50 +00:00
Florimond Manca
7d84408cda
Add an async example to intro snippets ( #750 )
2020-01-14 09:01:09 +00:00
Francesco Pongiluppi
7f0e791f9d
Fix syntax highlighting ( #757 )
...
Fixes syntax highlighting in quickstart documentation
2020-01-13 10:26:00 +00:00
Florimond Manca
bdfabe1e9a
Setup custom domain ( #751 )
2020-01-11 09:38:09 +00:00
wynnw
b7c0d3446c
Fix typo on "synonyms" ( #748 )
2020-01-10 23:46:31 +01:00
Mason Hall
b112b23152
Fix typo in async.md ( #747 )
2020-01-10 18:31:43 +01:00
Luís Gustavo
c225e95b1d
Fix typo in 'Streaming responses' docs ( #744 )
2020-01-09 12:23:33 +00:00
Tom Christie
97807bf607
Link to changelog
2020-01-09 09:22:54 +00:00
Tom Christie
b932d94d99
Use www.python-httpx.org domain
2020-01-09 09:18:32 +00:00
Tom Christie
2038919b7e
Proposed 0.11 docs ( #727 )
...
* Proposed 0.11 docs
* Add async section and link in
* Update docs/advanced.md
Co-Authored-By: Florimond Manca <florimond.manca@gmail.com>
* Update docs/async.md
Co-Authored-By: Florimond Manca <florimond.manca@gmail.com>
* Update docs/async.md
Co-Authored-By: Florimond Manca <florimond.manca@gmail.com>
* Update docs/quickstart.md
Co-Authored-By: Florimond Manca <florimond.manca@gmail.com>
* Update docs/async.md
Co-Authored-By: Florimond Manca <florimond.manca@gmail.com>
* Update docs/async.md
Co-Authored-By: Florimond Manca <florimond.manca@gmail.com>
* Update docs/async.md
Co-Authored-By: Florimond Manca <florimond.manca@gmail.com>
* Docs updates
* Use context-managed client instances in examples
* Update README with links to docs site, rather than to .md documents
* "99% test coverage"
* Update docs/async.md
Co-Authored-By: Florimond Manca <florimond.manca@gmail.com>
* Update docs/async.md
Co-Authored-By: Florimond Manca <florimond.manca@gmail.com>
* Add Client.close method to API docs
* Update docs/async.md
Co-Authored-By: Florimond Manca <florimond.manca@gmail.com>
Co-authored-by: Florimond Manca <florimond.manca@gmail.com>
2020-01-08 12:51:52 +00:00
Tom Christie
12dd157fea
Public Auth API ( #732 )
...
* Public Auth API
* Minor docs tweak
* Request.aread and Request.content
* Support requires_request_body
* Update tests/models/test_requests.py
Co-Authored-By: Florimond Manca <florimond.manca@gmail.com>
Co-authored-by: Florimond Manca <florimond.manca@gmail.com>
2020-01-07 13:20:23 +00:00
Florimond Manca
ff44d2d1b8
Fix typo in 'Redirection and History' docs ( #719 )
2020-01-03 21:14:13 +00:00
David Larlet
22663bc66e
Update link to timeout fine tuning in quickstart ( #696 )
2019-12-31 12:02:14 +00:00
Tom Christie
35b7516674
Version 0.10.0 ( #691 )
...
* Version 0.10.0
* Update CHANGELOG.md
Co-Authored-By: Florimond Manca <florimond.manca@gmail.com>
* Include changelog for 'response.request is no longer optional'.
* Add response.elapsed note to changelog
* Also ref original PR for response.elapsed behavior
Co-authored-by: Florimond Manca <florimond.manca@gmail.com>
2019-12-29 17:00:34 +00:00
Tom Christie
6a1ee0eb97
response.elapsed now reflects entire request/response time. ( #692 )
...
* Changed behaviour of elapsed on response
* Fixed api docs for Response elapsed
* Minor tweaks to 'request.elapsed'
* Response instantiated with content should have elapsed==0
* Fix elapsed time on immediately closed responses.
2019-12-29 16:56:18 +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
Florimond Manca
3462999366
Rename 'next' to 'anext' on Response ( #676 )
...
* Rename 'next' to 'anext' on Response
* Drop iscoroutinefunction() check
Co-authored-by: Tom Christie <tom@tomchristie.com>
2019-12-29 15:34:07 +00:00
Florimond Manca
d5da7430a2
Rename 'close' to 'aclose' on Client ( #675 )
...
* Switch to aclose on Client
* Fix reference to aclose in API docs
2019-12-29 15:15:09 +00:00
Florimond Manca
f9d18a8758
Rename 'read/close' to 'aread/aclose' on Response ( #674 )
...
* Switch to aread/aclose on responses
* Linting
Co-authored-by: Tom Christie <tom@tomchristie.com>
2019-12-29 15:14:53 +00:00
Florimond Manca
e30ec85016
Fix out-of-date methods on Response API docs ( #673 )
2019-12-21 17:21:14 +01:00
Tom Christie
77da6db8e8
Fix typo on "URLs" ( #630 )
2019-12-12 12:13:25 +01:00
Tom Christie
5cb48d981f
Update index.md
2019-12-06 15:34:45 +00:00
Tom Christie
ec40d04382
Add aiter methods on response ( #610 )
2019-12-06 15:20:09 +00:00
Tom Christie
d15dc0b1f8
Tighten up top-level API to only expose public API ( #608 )
...
* Tighten up top-level API to only expose public API
* Leave HTTPProxyMode for backwards compat, raising warnings.
* Add missing import
2019-12-06 15:20:01 +00:00
Tom Christie
ddc4885543
Update advanced.md
2019-12-06 11:35:29 +00:00
Tom Christie
1e23855709
Warn if cert / verify / trust_env are passed to client.request() ( #597 )
...
* Add cert and verify warnings on Client.request
* Resolve typo
Co-Authored-By: Florimond Manca <florimond.manca@gmail.com>
* Resolve typo
Co-Authored-By: Florimond Manca <florimond.manca@gmail.com>
* trust_env should be set on client init
* Update docs for per-Client SSL settings
* Update requests compat docs
2019-12-06 11:29:22 +00:00
Tom Christie
8d8ea8bbba
Add Client.stream() method. ( #600 )
...
* Add Client.stream() method.
* Add top-level stream API
* Documentation
2019-12-05 17:25:43 +00:00
Tom Christie
fc95c7e71e
stream -> stream_bytes, raw -> stream_raw ( #599 )
2019-12-05 11:39:28 +00:00