Trim21
9415af643f
Make raise_for_status chainable ( #2776 )
...
* merge upstream
* lint
* Update test_async_client.py
* update docs
* add example
* Update docs/quickstart.md
Co-authored-by: Tom Christie <tom@tomchristie.com>
* Update CHANGELOG.md
Co-authored-by: Tom Christie <tom@tomchristie.com>
* Update docs/quickstart.md
Co-authored-by: Tom Christie <tom@tomchristie.com>
---------
Co-authored-by: Tom Christie <tom@tomchristie.com>
2023-08-01 10:22:58 +01:00
Zanie
18d7721c38
Use Mozilla documentation instead of httpstatuses.com for HTTP error reference ( #2768 )
2023-07-13 15:17:07 -05:00
Johnny Lim
2e2949c8ea
Fix sample in quickstart.md ( #2747 )
2023-06-22 09:44:44 +01:00
Florimond Manca
3a82176f1f
Rework docs structure ( #2308 )
2022-07-21 08:43:18 +02:00
Tom Christie
ee9250d60b
Add cli support ( #1855 )
...
* Add cli support
* Add setup.py
* Import main to 'httpx.main'
* Add 'cli' to requirements
* Add tests for command-line client
* Drop most CLI tests
* Add test_json
* Add test_redirects
* Coverage exclusion over _main.py in order to test more clearly
* Black formatting
* Add test_follow_redirects
* Add test_post, test_verbose, test_auth
* Add test_errors
* Remove test_errors
* Add test_download
* Change test_errors - perhaps the empty host header was causing the socket error?
* Update test_errors to not break socket
* Update docs
* Update version to 1.0.0.beta0
* Tweak CHANGELOG
* Fix up images in README
* Tweak images in README
* Update README
2021-09-14 09:44:43 +01:00
Tom Christie
47266d763b
Switch follow redirects default ( #1808 )
...
* Switch default on allow_redirects to False
* allow_redirects -> follow_redirects
* Update follow_redirects default in top-level API
* Update docs on follow_redirects
2021-09-13 13:21:22 +01:00
laggardkernel
ea5ffce14f
Fix redirect description about HEAD ( #1520 )
...
* Fix redirect description about HEAD
* Apply suggestions from code review
Co-authored-by: Florimond Manca <florimond.manca@gmail.com>
2021-03-21 15:59:31 +01:00
Tom Christie
feb404f86b
Seperate content=... and data=... parameters ( #1266 )
...
* Seperate content=... and data=... parameters
* Update compatibility.md
2020-09-15 13:36:10 +01:00
Tom Christie
d0fe113945
Drop chardet ( #1269 )
...
* Internal refactoring to swap auth/redirects ordering
* Drop chardet for charset detection
* Drop chardet in favour of simpler charset autodetection
* Revert unintentionally included changes
* Update test case
* Refactor to prefer different decoding style
* Update text decoding docs/docstrings
* Resolve typo
* Update docs/quickstart.md
Co-authored-by: Florimond Manca <florimond.manca@gmail.com>
Co-authored-by: Florimond Manca <florimond.manca@gmail.com>
2020-09-15 11:20:19 +01:00
Hugo van Kemenade
d10b7cdc51
Use pycon for Python console code blocks ( #1187 )
...
Co-authored-by: Florimond Manca <florimond.manca@gmail.com>
2020-08-18 15:17:44 +02:00
François Voron
27b0dbc22d
Raise HTTPStatusError in raise_from_status ( #1072 )
2020-07-20 13:10:57 +01:00
Florimond Manca
0f7d644b8d
Add note on data fields in multipart form encoding ( #1022 )
...
* Add note on data fields in multipart form encoding
* Fix message
2020-06-15 20:40:17 +02:00
Josep Cugat
620b0670db
Increase test coverage - take 2 ( #1012 )
...
* Fix HttpError -> HTTPError typo
* Increased test coverage
* Increase coverage threshold
* Reuse sync/async transport code in test_auth.py
* Removed close_client check inside StreamContextManager
It's never set as True when used in async
* Reuse sync/async transport code in test_redirects.py
2020-06-02 10:24:45 +01:00
Ryan Balfanz
3b9ebe0523
Fix small typo ( #920 )
2020-05-01 20:37:01 +02:00
Francesco Pongiluppi
7f0e791f9d
Fix syntax highlighting ( #757 )
...
Fixes syntax highlighting in quickstart documentation
2020-01-13 10:26:00 +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
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
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
Tom Christie
ec40d04382
Add aiter methods on response ( #610 )
2019-12-06 15:20:09 +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
2f54b200de
Allow default+override timeout style ( #593 )
...
* Allow styles like: httpx.Timeout(5.0, pool_timeout=None)
* Update timeout docs
* Minor tweaks to sub headings in timeout docs
* Fixing up Timeout docs
* RequestTimeout -> TimeoutException
* Tweak timeout docs
2019-12-05 09:38:48 +00:00
Tom Christie
206c5372a6
Drop sync ( #544 )
...
Drop sync client
2019-11-27 10:43:42 +00:00
Mateusz Woś
2984499f28
Add timeout fine-tunning advanced docs section ( #476 )
...
* Add timeout fine-tunning advanced docs section
* Rephrase part of timeout documentation
2019-10-16 18:27:45 +02:00
ImPerat0R_
97a104abc3
Add language syntax highlighting in Quickstart ( #466 )
2019-10-09 18:34:54 +02:00
Kyle Galbraith
b65bce5924
Fix typos, spelling issues, and grammar in docs ( #426 )
2019-10-02 11:46:54 -05:00
Dustin Ingram
5df822ca11
Fix broken docs ( #415 )
...
* Fix broken link to parallel request page
* Fix incomplete code block on quickstart page
2019-09-30 20:19:53 +01:00
Yeray Diaz Diaz
8155352d20
Document digest auth ( #348 )
...
* Document authentication
* Fix linting errors
* Tweak wording
* Update docs/quickstart.md
Co-Authored-By: Florimond Manca <florimond.manca@gmail.com>
2019-09-16 12:50:00 +01:00
Tom Christie
2d09d5b36c
Renaming -> httpx ( #129 )
...
* Renaming -> httpx
* Renaming to httpx
2019-07-19 15:15:16 +01:00
Tom Christie
56a7943206
Int status codes ( #92 )
...
* Use plain int for response.status_code
* Linting
2019-06-17 16:53:39 +01:00
Tom Christie
d21e3ab2f0
Add multipart docs
2019-06-17 14:51:40 +01:00
Tom Christie
7c6fb5c6ca
Tweaks ( #89 )
...
* Close redirect responses
* History should not be reverse-order
* History should not be reverse-order
* Docs updates
2019-06-13 16:19:39 +01:00
Tom Christie
d5d726f66a
Add Cookies docs
2019-06-13 14:03:22 +01:00
Tom Christie
c9747aa357
http3 ( #86 )
...
* Start fleshing out documentation
* Docs work
* http3
* Update docs
* Include lowercase status codes, for requests compat
* Updating docs
* Docs tweaks
2019-06-12 15:02:16 +01:00