METADATA 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613
  1. Metadata-Version: 2.3
  2. Name: httpcore
  3. Version: 1.0.6
  4. Summary: A minimal low-level HTTP client.
  5. Project-URL: Documentation, https://www.encode.io/httpcore
  6. Project-URL: Homepage, https://www.encode.io/httpcore/
  7. Project-URL: Source, https://github.com/encode/httpcore
  8. Author-email: Tom Christie <tom@tomchristie.com>
  9. License-Expression: BSD-3-Clause
  10. License-File: LICENSE.md
  11. Classifier: Development Status :: 3 - Alpha
  12. Classifier: Environment :: Web Environment
  13. Classifier: Framework :: AsyncIO
  14. Classifier: Framework :: Trio
  15. Classifier: Intended Audience :: Developers
  16. Classifier: License :: OSI Approved :: BSD License
  17. Classifier: Operating System :: OS Independent
  18. Classifier: Programming Language :: Python :: 3
  19. Classifier: Programming Language :: Python :: 3 :: Only
  20. Classifier: Programming Language :: Python :: 3.8
  21. Classifier: Programming Language :: Python :: 3.9
  22. Classifier: Programming Language :: Python :: 3.10
  23. Classifier: Programming Language :: Python :: 3.11
  24. Classifier: Programming Language :: Python :: 3.12
  25. Classifier: Topic :: Internet :: WWW/HTTP
  26. Requires-Python: >=3.8
  27. Requires-Dist: certifi
  28. Requires-Dist: h11<0.15,>=0.13
  29. Provides-Extra: asyncio
  30. Requires-Dist: anyio<5.0,>=4.0; extra == 'asyncio'
  31. Provides-Extra: http2
  32. Requires-Dist: h2<5,>=3; extra == 'http2'
  33. Provides-Extra: socks
  34. Requires-Dist: socksio==1.*; extra == 'socks'
  35. Provides-Extra: trio
  36. Requires-Dist: trio<1.0,>=0.22.0; extra == 'trio'
  37. Description-Content-Type: text/markdown
  38. # HTTP Core
  39. [![Test Suite](https://github.com/encode/httpcore/workflows/Test%20Suite/badge.svg)](https://github.com/encode/httpcore/actions)
  40. [![Package version](https://badge.fury.io/py/httpcore.svg)](https://pypi.org/project/httpcore/)
  41. > *Do one thing, and do it well.*
  42. The HTTP Core package provides a minimal low-level HTTP client, which does
  43. one thing only. Sending HTTP requests.
  44. It does not provide any high level model abstractions over the API,
  45. does not handle redirects, multipart uploads, building authentication headers,
  46. transparent HTTP caching, URL parsing, session cookie handling,
  47. content or charset decoding, handling JSON, environment based configuration
  48. defaults, or any of that Jazz.
  49. Some things HTTP Core does do:
  50. * Sending HTTP requests.
  51. * Thread-safe / task-safe connection pooling.
  52. * HTTP(S) proxy & SOCKS proxy support.
  53. * Supports HTTP/1.1 and HTTP/2.
  54. * Provides both sync and async interfaces.
  55. * Async backend support for `asyncio` and `trio`.
  56. ## Requirements
  57. Python 3.8+
  58. ## Installation
  59. For HTTP/1.1 only support, install with:
  60. ```shell
  61. $ pip install httpcore
  62. ```
  63. There are also a number of optional extras available...
  64. ```shell
  65. $ pip install httpcore['asyncio,trio,http2,socks']
  66. ```
  67. ## Sending requests
  68. Send an HTTP request:
  69. ```python
  70. import httpcore
  71. response = httpcore.request("GET", "https://www.example.com/")
  72. print(response)
  73. # <Response [200]>
  74. print(response.status)
  75. # 200
  76. print(response.headers)
  77. # [(b'Accept-Ranges', b'bytes'), (b'Age', b'557328'), (b'Cache-Control', b'max-age=604800'), ...]
  78. print(response.content)
  79. # b'<!doctype html>\n<html>\n<head>\n<title>Example Domain</title>\n\n<meta charset="utf-8"/>\n ...'
  80. ```
  81. The top-level `httpcore.request()` function is provided for convenience. In practice whenever you're working with `httpcore` you'll want to use the connection pooling functionality that it provides.
  82. ```python
  83. import httpcore
  84. http = httpcore.ConnectionPool()
  85. response = http.request("GET", "https://www.example.com/")
  86. ```
  87. Once you're ready to get going, [head over to the documentation](https://www.encode.io/httpcore/).
  88. ## Motivation
  89. You *probably* don't want to be using HTTP Core directly. It might make sense if
  90. you're writing something like a proxy service in Python, and you just want
  91. something at the lowest possible level, but more typically you'll want to use
  92. a higher level client library, such as `httpx`.
  93. The motivation for `httpcore` is:
  94. * To provide a reusable low-level client library, that other packages can then build on top of.
  95. * To provide a *really clear interface split* between the networking code and client logic,
  96. so that each is easier to understand and reason about in isolation.
  97. ## Dependencies
  98. The `httpcore` package has the following dependencies...
  99. * `h11`
  100. * `certifi`
  101. And the following optional extras...
  102. * `anyio` - Required by `pip install httpcore['asyncio']`.
  103. * `trio` - Required by `pip install httpcore['trio']`.
  104. * `h2` - Required by `pip install httpcore['http2']`.
  105. * `socksio` - Required by `pip install httpcore['socks']`.
  106. ## Versioning
  107. We use [SEMVER for our versioning policy](https://semver.org/).
  108. For changes between package versions please see our [project changelog](CHANGELOG.md).
  109. We recommend pinning your requirements either the most current major version, or a more specific version range:
  110. ```python
  111. pip install 'httpcore==1.*'
  112. ```
  113. # Changelog
  114. All notable changes to this project will be documented in this file.
  115. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
  116. ## Version 1.0.6 (October 1st, 2024)
  117. - Relax `trio` dependency pinning. (#956)
  118. - Handle `trio` raising `NotImplementedError` on unsupported platforms. (#955)
  119. - Handle mapping `ssl.SSLError` to `httpcore.ConnectError`. (#918)
  120. ## 1.0.5 (March 27th, 2024)
  121. - Handle `EndOfStream` exception for anyio backend. (#899)
  122. - Allow trio `0.25.*` series in package dependancies. (#903)
  123. ## 1.0.4 (February 21st, 2024)
  124. - Add `target` request extension. (#888)
  125. - Fix support for connection `Upgrade` and `CONNECT` when some data in the stream has been read. (#882)
  126. ## 1.0.3 (February 13th, 2024)
  127. - Fix support for async cancellations. (#880)
  128. - Fix trace extension when used with socks proxy. (#849)
  129. - Fix SSL context for connections using the "wss" scheme (#869)
  130. ## 1.0.2 (November 10th, 2023)
  131. - Fix `float("inf")` timeouts in `Event.wait` function. (#846)
  132. ## 1.0.1 (November 3rd, 2023)
  133. - Fix pool timeout to account for the total time spent retrying. (#823)
  134. - Raise a neater RuntimeError when the correct async deps are not installed. (#826)
  135. - Add support for synchronous TLS-in-TLS streams. (#840)
  136. ## 1.0.0 (October 6th, 2023)
  137. From version 1.0 our async support is now optional, as the package has minimal dependencies by default.
  138. For async support use either `pip install 'httpcore[asyncio]'` or `pip install 'httpcore[trio]'`.
  139. The project versioning policy is now explicitly governed by SEMVER. See https://semver.org/.
  140. - Async support becomes fully optional. (#809)
  141. - Add support for Python 3.12. (#807)
  142. ## 0.18.0 (September 8th, 2023)
  143. - Add support for HTTPS proxies. (#745, #786)
  144. - Drop Python 3.7 support. (#727)
  145. - Handle `sni_hostname` extension with SOCKS proxy. (#774)
  146. - Handle HTTP/1.1 half-closed connections gracefully. (#641)
  147. - Change the type of `Extensions` from `Mapping[Str, Any]` to `MutableMapping[Str, Any]`. (#762)
  148. ## 0.17.3 (July 5th, 2023)
  149. - Support async cancellations, ensuring that the connection pool is left in a clean state when cancellations occur. (#726)
  150. - The networking backend interface has [been added to the public API](https://www.encode.io/httpcore/network-backends). Some classes which were previously private implementation detail are now part of the top-level public API. (#699)
  151. - Graceful handling of HTTP/2 GoAway frames, with requests being transparently retried on a new connection. (#730)
  152. - Add exceptions when a synchronous `trace callback` is passed to an asynchronous request or an asynchronous `trace callback` is passed to a synchronous request. (#717)
  153. - Drop Python 3.7 support. (#727)
  154. ## 0.17.2 (May 23th, 2023)
  155. - Add `socket_options` argument to `ConnectionPool` and `HTTProxy` classes. (#668)
  156. - Improve logging with per-module logger names. (#690)
  157. - Add `sni_hostname` request extension. (#696)
  158. - Resolve race condition during import of `anyio` package. (#692)
  159. - Enable TCP_NODELAY for all synchronous sockets. (#651)
  160. ## 0.17.1 (May 17th, 2023)
  161. - If 'retries' is set, then allow retries if an SSL handshake error occurs. (#669)
  162. - Improve correctness of tracebacks on network exceptions, by raising properly chained exceptions. (#678)
  163. - Prevent connection-hanging behaviour when HTTP/2 connections are closed by a server-sent 'GoAway' frame. (#679)
  164. - Fix edge-case exception when removing requests from the connection pool. (#680)
  165. - Fix pool timeout edge-case. (#688)
  166. ## 0.17.0 (March 16th, 2023)
  167. - Add DEBUG level logging. (#648)
  168. - Respect HTTP/2 max concurrent streams when settings updates are sent by server. (#652)
  169. - Increase the allowable HTTP header size to 100kB. (#647)
  170. - Add `retries` option to SOCKS proxy classes. (#643)
  171. ## 0.16.3 (December 20th, 2022)
  172. - Allow `ws` and `wss` schemes. Allows us to properly support websocket upgrade connections. (#625)
  173. - Forwarding HTTP proxies use a connection-per-remote-host. Required by some proxy implementations. (#637)
  174. - Don't raise `RuntimeError` when closing a connection pool with active connections. Removes some error cases when cancellations are used. (#631)
  175. - Lazy import `anyio`, so that it's no longer a hard dependancy, and isn't imported if unused. (#639)
  176. ## 0.16.2 (November 25th, 2022)
  177. - Revert 'Fix async cancellation behaviour', which introduced race conditions. (#627)
  178. - Raise `RuntimeError` if attempting to us UNIX domain sockets on Windows. (#619)
  179. ## 0.16.1 (November 17th, 2022)
  180. - Fix HTTP/1.1 interim informational responses, such as "100 Continue". (#605)
  181. ## 0.16.0 (October 11th, 2022)
  182. - Support HTTP/1.1 informational responses. (#581)
  183. - Fix async cancellation behaviour. (#580)
  184. - Support `h11` 0.14. (#579)
  185. ## 0.15.0 (May 17th, 2022)
  186. - Drop Python 3.6 support (#535)
  187. - Ensure HTTP proxy CONNECT requests include `timeout` configuration. (#506)
  188. - Switch to explicit `typing.Optional` for type hints. (#513)
  189. - For `trio` map OSError exceptions to `ConnectError`. (#543)
  190. ## 0.14.7 (February 4th, 2022)
  191. - Requests which raise a PoolTimeout need to be removed from the pool queue. (#502)
  192. - Fix AttributeError that happened when Socks5Connection were terminated. (#501)
  193. ## 0.14.6 (February 1st, 2022)
  194. - Fix SOCKS support for `http://` URLs. (#492)
  195. - Resolve race condition around exceptions during streaming a response. (#491)
  196. ## 0.14.5 (January 18th, 2022)
  197. - SOCKS proxy support. (#478)
  198. - Add proxy_auth argument to HTTPProxy. (#481)
  199. - Improve error message on 'RemoteProtocolError' exception when server disconnects without sending a response. (#479)
  200. ## 0.14.4 (January 5th, 2022)
  201. - Support HTTP/2 on HTTPS tunnelling proxies. (#468)
  202. - Fix proxy headers missing on HTTP forwarding. (#456)
  203. - Only instantiate SSL context if required. (#457)
  204. - More robust HTTP/2 handling. (#253, #439, #440, #441)
  205. ## 0.14.3 (November 17th, 2021)
  206. - Fix race condition when removing closed connections from the pool. (#437)
  207. ## 0.14.2 (November 16th, 2021)
  208. - Failed connections no longer remain in the pool. (Pull #433)
  209. ## 0.14.1 (November 12th, 2021)
  210. - `max_connections` becomes optional. (Pull #429)
  211. - `certifi` is now included in the install dependancies. (Pull #428)
  212. - `h2` is now strictly optional. (Pull #428)
  213. ## 0.14.0 (November 11th, 2021)
  214. The 0.14 release is a complete reworking of `httpcore`, comprehensively addressing some underlying issues in the connection pooling, as well as substantially redesigning the API to be more user friendly.
  215. Some of the lower-level API design also makes the components more easily testable in isolation, and the package now has 100% test coverage.
  216. See [discussion #419](https://github.com/encode/httpcore/discussions/419) for a little more background.
  217. There's some other neat bits in there too, such as the "trace" extension, which gives a hook into inspecting the internal events that occur during the request/response cycle. This extension is needed for the HTTPX cli, in order to...
  218. * Log the point at which the connection is established, and the IP/port on which it is made.
  219. * Determine if the outgoing request should log as HTTP/1.1 or HTTP/2, rather than having to assume it's HTTP/2 if the --http2 flag was passed. (Which may not actually be true.)
  220. * Log SSL version info / certificate info.
  221. Note that `curio` support is not currently available in 0.14.0. If you're using `httpcore` with `curio` please get in touch, so we can assess if we ought to prioritize it as a feature or not.
  222. ## 0.13.7 (September 13th, 2021)
  223. - Fix broken error messaging when URL scheme is missing, or a non HTTP(S) scheme is used. (Pull #403)
  224. ## 0.13.6 (June 15th, 2021)
  225. ### Fixed
  226. - Close sockets when read or write timeouts occur. (Pull #365)
  227. ## 0.13.5 (June 14th, 2021)
  228. ### Fixed
  229. - Resolved niggles with AnyIO EOF behaviours. (Pull #358, #362)
  230. ## 0.13.4 (June 9th, 2021)
  231. ### Added
  232. - Improved error messaging when URL scheme is missing, or a non HTTP(S) scheme is used. (Pull #354)
  233. ### Fixed
  234. - Switched to `anyio` as the default backend implementation when running with `asyncio`. Resolves some awkward [TLS timeout issues](https://github.com/encode/httpx/discussions/1511).
  235. ## 0.13.3 (May 6th, 2021)
  236. ### Added
  237. - Support HTTP/2 prior knowledge, using `httpcore.SyncConnectionPool(http1=False)`. (Pull #333)
  238. ### Fixed
  239. - Handle cases where environment does not provide `select.poll` support. (Pull #331)
  240. ## 0.13.2 (April 29th, 2021)
  241. ### Added
  242. - Improve error message for specific case of `RemoteProtocolError` where server disconnects without sending a response. (Pull #313)
  243. ## 0.13.1 (April 28th, 2021)
  244. ### Fixed
  245. - More resiliant testing for closed connections. (Pull #311)
  246. - Don't raise exceptions on ungraceful connection closes. (Pull #310)
  247. ## 0.13.0 (April 21st, 2021)
  248. The 0.13 release updates the core API in order to match the HTTPX Transport API,
  249. introduced in HTTPX 0.18 onwards.
  250. An example of making requests with the new interface is:
  251. ```python
  252. with httpcore.SyncConnectionPool() as http:
  253. status_code, headers, stream, extensions = http.handle_request(
  254. method=b'GET',
  255. url=(b'https', b'example.org', 443, b'/'),
  256. headers=[(b'host', b'example.org'), (b'user-agent', b'httpcore')]
  257. stream=httpcore.ByteStream(b''),
  258. extensions={}
  259. )
  260. body = stream.read()
  261. print(status_code, body)
  262. ```
  263. ### Changed
  264. - The `.request()` method is now `handle_request()`. (Pull #296)
  265. - The `.arequest()` method is now `.handle_async_request()`. (Pull #296)
  266. - The `headers` argument is no longer optional. (Pull #296)
  267. - The `stream` argument is no longer optional. (Pull #296)
  268. - The `ext` argument is now named `extensions`, and is no longer optional. (Pull #296)
  269. - The `"reason"` extension keyword is now named `"reason_phrase"`. (Pull #296)
  270. - The `"reason_phrase"` and `"http_version"` extensions now use byte strings for their values. (Pull #296)
  271. - The `httpcore.PlainByteStream()` class becomes `httpcore.ByteStream()`. (Pull #296)
  272. ### Added
  273. - Streams now support a `.read()` interface. (Pull #296)
  274. ### Fixed
  275. - Task cancellation no longer leaks connections from the connection pool. (Pull #305)
  276. ## 0.12.3 (December 7th, 2020)
  277. ### Fixed
  278. - Abort SSL connections on close rather than waiting for remote EOF when using `asyncio`. (Pull #167)
  279. - Fix exception raised in case of connect timeouts when using the `anyio` backend. (Pull #236)
  280. - Fix `Host` header precedence for `:authority` in HTTP/2. (Pull #241, #243)
  281. - Handle extra edge case when detecting for socket readability when using `asyncio`. (Pull #242, #244)
  282. - Fix `asyncio` SSL warning when using proxy tunneling. (Pull #249)
  283. ## 0.12.2 (November 20th, 2020)
  284. ### Fixed
  285. - Properly wrap connect errors on the asyncio backend. (Pull #235)
  286. - Fix `ImportError` occurring on Python 3.9 when using the HTTP/1.1 sync client in a multithreaded context. (Pull #237)
  287. ## 0.12.1 (November 7th, 2020)
  288. ### Added
  289. - Add connect retries. (Pull #221)
  290. ### Fixed
  291. - Tweak detection of dropped connections, resolving an issue with open files limits on Linux. (Pull #185)
  292. - Avoid leaking connections when establishing an HTTP tunnel to a proxy has failed. (Pull #223)
  293. - Properly wrap OS errors when using `trio`. (Pull #225)
  294. ## 0.12.0 (October 6th, 2020)
  295. ### Changed
  296. - HTTP header casing is now preserved, rather than always sent in lowercase. (#216 and python-hyper/h11#104)
  297. ### Added
  298. - Add Python 3.9 to officially supported versions.
  299. ### Fixed
  300. - Gracefully handle a stdlib asyncio bug when a connection is closed while it is in a paused-for-reading state. (#201)
  301. ## 0.11.1 (September 28nd, 2020)
  302. ### Fixed
  303. - Add await to async semaphore release() coroutine (#197)
  304. - Drop incorrect curio classifier (#192)
  305. ## 0.11.0 (September 22nd, 2020)
  306. The Transport API with 0.11.0 has a couple of significant changes.
  307. Firstly we've moved changed the request interface in order to allow extensions, which will later enable us to support features
  308. such as trailing headers, HTTP/2 server push, and CONNECT/Upgrade connections.
  309. The interface changes from:
  310. ```python
  311. def request(method, url, headers, stream, timeout):
  312. return (http_version, status_code, reason, headers, stream)
  313. ```
  314. To instead including an optional dictionary of extensions on the request and response:
  315. ```python
  316. def request(method, url, headers, stream, ext):
  317. return (status_code, headers, stream, ext)
  318. ```
  319. Having an open-ended extensions point will allow us to add later support for various optional features, that wouldn't otherwise be supported without these API changes.
  320. In particular:
  321. * Trailing headers support.
  322. * HTTP/2 Server Push
  323. * sendfile.
  324. * Exposing raw connection on CONNECT, Upgrade, HTTP/2 bi-di streaming.
  325. * Exposing debug information out of the API, including template name, template context.
  326. Currently extensions are limited to:
  327. * request: `timeout` - Optional. Timeout dictionary.
  328. * response: `http_version` - Optional. Include the HTTP version used on the response.
  329. * response: `reason` - Optional. Include the reason phrase used on the response. Only valid with HTTP/1.*.
  330. See https://github.com/encode/httpx/issues/1274#issuecomment-694884553 for the history behind this.
  331. Secondly, the async version of `request` is now namespaced as `arequest`.
  332. This allows concrete transports to support both sync and async implementations on the same class.
  333. ### Added
  334. - Add curio support. (Pull #168)
  335. - Add anyio support, with `backend="anyio"`. (Pull #169)
  336. ### Changed
  337. - Update the Transport API to use 'ext' for optional extensions. (Pull #190)
  338. - Update the Transport API to use `.request` and `.arequest` so implementations can support both sync and async. (Pull #189)
  339. ## 0.10.2 (August 20th, 2020)
  340. ### Added
  341. - Added Unix Domain Socket support. (Pull #139)
  342. ### Fixed
  343. - Always include the port on proxy CONNECT requests. (Pull #154)
  344. - Fix `max_keepalive_connections` configuration. (Pull #153)
  345. - Fixes behaviour in HTTP/1.1 where server disconnects can be used to signal the end of the response body. (Pull #164)
  346. ## 0.10.1 (August 7th, 2020)
  347. - Include `max_keepalive_connections` on `AsyncHTTPProxy`/`SyncHTTPProxy` classes.
  348. ## 0.10.0 (August 7th, 2020)
  349. The most notable change in the 0.10.0 release is that HTTP/2 support is now fully optional.
  350. Use either `pip install httpcore` for HTTP/1.1 support only, or `pip install httpcore[http2]` for HTTP/1.1 and HTTP/2 support.
  351. ### Added
  352. - HTTP/2 support becomes optional. (Pull #121, #130)
  353. - Add `local_address=...` support. (Pull #100, #134)
  354. - Add `PlainByteStream`, `IteratorByteStream`, `AsyncIteratorByteStream`. The `AsyncByteSteam` and `SyncByteStream` classes are now pure interface classes. (#133)
  355. - Add `LocalProtocolError`, `RemoteProtocolError` exceptions. (Pull #129)
  356. - Add `UnsupportedProtocol` exception. (Pull #128)
  357. - Add `.get_connection_info()` method. (Pull #102, #137)
  358. - Add better TRACE logs. (Pull #101)
  359. ### Changed
  360. - `max_keepalive` is deprecated in favour of `max_keepalive_connections`. (Pull #140)
  361. ### Fixed
  362. - Improve handling of server disconnects. (Pull #112)
  363. ## 0.9.1 (May 27th, 2020)
  364. ### Fixed
  365. - Proper host resolution for sync case, including IPv6 support. (Pull #97)
  366. - Close outstanding connections when connection pool is closed. (Pull #98)
  367. ## 0.9.0 (May 21th, 2020)
  368. ### Changed
  369. - URL port becomes an `Optional[int]` instead of `int`. (Pull #92)
  370. ### Fixed
  371. - Honor HTTP/2 max concurrent streams settings. (Pull #89, #90)
  372. - Remove incorrect debug log. (Pull #83)
  373. ## 0.8.4 (May 11th, 2020)
  374. ### Added
  375. - Logging via HTTPCORE_LOG_LEVEL and HTTPX_LOG_LEVEL environment variables
  376. and TRACE level logging. (Pull #79)
  377. ### Fixed
  378. - Reuse of connections on HTTP/2 in close concurrency situations. (Pull #81)
  379. ## 0.8.3 (May 6rd, 2020)
  380. ### Fixed
  381. - Include `Host` and `Accept` headers on proxy "CONNECT" requests.
  382. - De-duplicate any headers also contained in proxy_headers.
  383. - HTTP/2 flag not being passed down to proxy connections.
  384. ## 0.8.2 (May 3rd, 2020)
  385. ### Fixed
  386. - Fix connections using proxy forwarding requests not being added to the
  387. connection pool properly. (Pull #70)
  388. ## 0.8.1 (April 30th, 2020)
  389. ### Changed
  390. - Allow inherintance of both `httpcore.AsyncByteStream`, `httpcore.SyncByteStream` without type conflicts.
  391. ## 0.8.0 (April 30th, 2020)
  392. ### Fixed
  393. - Fixed tunnel proxy support.
  394. ### Added
  395. - New `TimeoutException` base class.
  396. ## 0.7.0 (March 5th, 2020)
  397. - First integration with HTTPX.