Commit Graph

538 Commits

Author SHA1 Message Date
Tom Christie
f55db15a01
Add 'fork' to auto backend (#614)
* Add 'fork' to auto backend

* Version 0.9.3
2019-12-07 09:07:33 +00:00
Tom Christie
2394aabcb9 Add 0.9.2 note 2019-12-07 08:51:14 +00:00
Tom Christie
3a0df657b3 Version 0.9.2 2019-12-07 08:49:34 +00:00
Tom Christie
0aa1815153 0.9.1 note 2019-12-06 17:48:04 +00:00
Tom Christie
76f3ff9dd9 Release 0.9.1 due to build artifacts issue 2019-12-06 17:45:56 +00:00
Tom Christie
5cb48d981f
Update index.md 2019-12-06 15:34:45 +00:00
Tom Christie
85cc8f8008
Update README.md 2019-12-06 15:34:21 +00:00
Tom Christie
8d1bc9e60f
Version 0.9 (#606)
* Version 0.9

* Final CHANGELOG entries for 0.9
2019-12-06 15:32:22 +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
Florimond Manca
e1f5b8ba57 Move tunnel_start_tls() to HTTPConnection (#609) 2019-12-06 13:00:38 +00:00
Florimond Manca
df9dc6d516 Cleanup comments on handling MultiError (#607) 2019-12-06 12:58:21 +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
Florimond Manca
c38fd68ed7 Drop BackgroundManager in favor of fork(func1, func2) (#603)
* Drop BackgroundManager in favor of fork(func1, func2)

* Please mypy
2019-12-06 10:49:24 +00:00
Tom Christie
bb6e52f356
Rename BaseSocketStream cases from connection.stream to connection.socket (#601) 2019-12-05 19:54:19 +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
38a9d77342
Update changelog to include 'master' (#596)
* Update changelog to include 'master'

* Include PR references
2019-12-05 12:28:45 +00:00
Tom Christie
e56e120175
Drop write_no_block from backends. (#594)
* Drop write_no_block

* Drop redundant code from Trio backend
2019-12-05 11:46:11 +00:00
Tom Christie
fc95c7e71e
stream -> stream_bytes, raw -> stream_raw (#599) 2019-12-05 11:39:28 +00:00
Tom Christie
dad379736d
Fix Timeout -> TimeoutException in test case (#598) 2019-12-05 11:03:27 +00:00
Tom Christie
f8794cb3ce
Improve backend docs, particularly wrt. autodetection (#595)
* Improve backend docs, particularly wrt. autodetection

* Resolve typo.
2019-12-05 10:27:16 +00:00
Tom Christie
1c9167e3b7
Update CHANGELOG.md 2019-12-05 10:03:24 +00:00
Tom Christie
a738327678
Tweak docstring 2019-12-05 09:40:24 +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
81edb1b45b
Update index.md 2019-12-04 17:21:42 +00:00
Tom Christie
cb735b9b0d
Update README.md 2019-12-04 17:21:17 +00:00
Tom Christie
c08ae7796f
Alpha note, and recommendations on pinning versions (#590) 2019-12-04 11:57:02 +00:00
Tom Christie
eb7c6b0342
Differentiate between timeout=None and timeout=UNSET. (#592)
* TimeoutConfig -> Timeout

* Timeout=None should mean what it says.

* Drop optional timeout on internal client methods
2019-12-04 11:54:39 +00:00
Tom Christie
c033ed1b65
TimeoutConfig -> Timeout (#591) 2019-12-04 11:39:45 +00:00
han-solo
d223de8ff3 Fixed version requirement for rfc3986. Issue reference #504 (#589) 2019-12-04 10:05:33 +00:00
Tom Christie
293bc70947
Update README.md 2019-12-04 09:54:05 +00:00
Tom Christie
5076952202
Rename http2 switch (#586)
* Simplify HTTP version config, and switch HTTP/2 off by default

* HTTP/2 docs

* HTTP/2 interlinking in docs

* Add concurrency auto-detection

* Add sniffio

* Rename HTTP2 switch on client

* http_2 -> http2
2019-12-02 19:52:29 +00:00
Tom Christie
3cbe7315e8
Concurrency autodetection (#585)
* Simplify HTTP version config, and switch HTTP/2 off by default

* HTTP/2 docs

* HTTP/2 interlinking in docs

* Add concurrency auto-detection

* Add sniffio
2019-12-02 19:26:16 +00:00
Tom Christie
30229f1652
Better HTTP/2 defaults. (#584)
* Simplify HTTP version config, and switch HTTP/2 off by default

* HTTP/2 docs

* HTTP/2 interlinking in docs
2019-12-02 17:07:04 +00:00
Tom Christie
12d00b238e
Minor test fixes (#583)
* Minor test fixes

* Fix multipart test to less ambiguous file extension -> mime type check

* Include a no-file-extension case in multipart tests
2019-12-02 12:11:15 +00:00
Mattwmaster58
33cb39733f Clarify multipart documentation (#580)
*Clarify multipart behvaiour
2019-12-02 11:56:25 +00:00
Florimond Manca
3f68601222 Don't use background task in HTTP/1.1 dispatcher (#569) 2019-12-01 10:16:28 +00:00
Tom Christie
871b0b5cb9
Update advanced.md 2019-11-30 21:46:07 +00:00
Mattwmaster58
ed949508a6 Files without a filename should not set a Content-Type in multipart data. (#520)
* File upoads with no filename should not set a Content-Type in their multipart data.
* Update type annotations to allow file uploads to be a string
2019-11-30 19:46:44 +00:00
Tom Christie
7d45db068b
Link to ASGI docs (#577) 2019-11-30 18:38:27 +00:00
Tom Christie
248aa580a1
Add Response.stream_lines (#575) 2019-11-30 18:02:46 +00:00
Tom Christie
fdaa01275a
Add Response.is_error (#574) 2019-11-30 17:43:48 +00:00
Casey
9df76ccfe9 Preserve list type query paramaters when merging QueryParams objects (#546) (#547) 2019-11-30 15:35:09 +00:00
Tom Christie
095b69184a
Drop MessageLoggerASGIMiddleware. (#573) 2019-11-30 14:28:39 +00:00
Tom Christie
43331cfb3d Ensure Authorization header has priority over .netrc 2019-11-30 12:06:16 +00:00
Florimond Manca
8d55d78574 Drop nox in favor of vanilla scripts (#566)
* Drop nox in favor of vanilla scripts

* Use named stages

* Fix attrs dependency resolution madness

* Add missing mkautodoc dev dependency

* Add missing install step on windows build

* Explicitly define stage order so that timed out Windows build runs last

* Add missing dev dependency on Black

* Clean up contributing guide

* Separate docs into docs-build and docs-serve
2019-11-30 11:50:13 +00:00
Florimond Manca
3218c35341
Refactor start_tls tests (#567)
* Refactor start_tls tests

* Clean up read_response()
2019-11-29 22:16:32 +01:00
Tom Christie
364378a814
Pool timeouts should be on the TimeoutConfig, not PoolLimits (#563)
* Pool timeouts should be on the TimeoutConfig, not PoolLimits

* Linting

* Fix type annotation

* Linting
2019-11-29 12:01:51 +00:00
Tom Christie
b1393ec2f1
Drop iterate_in_threadpool and iterate (#564)
* Drop iterate_in_threadpool

* Drop iterate from concurrency backends
2019-11-29 11:45:40 +00:00