Skip to content
Myr

README.md

This file

Path

README.md

101 lines · 3.1 KiB · Markdown

Last changed by

Add multipart docsTom Christiebefore adoptiond21e3ab

History of this file

Take it

http3 (#86)Tom Christiebefore adoptionc9747aa

line 1why, one step back
1# HTTP3

StuffTom Christiebefore adoption30530d4

line 2why, one step back
2

http3 (#86)Tom Christiebefore adoptionc9747aa

lines 3–4why, one step back
3<a href="https://travis-ci.org/encode/http3">
4 <img src="https://travis-ci.org/encode/http3.svg?branch=master" alt="Build Status">

Merge pull request #43 from encode/badgesTom Christiebefore adoption3553625

line 5why, one step back
5</a>

http3 (#86)Tom Christiebefore adoptionc9747aa

lines 6–7why, one step back
6<a href="https://codecov.io/gh/encode/http3">
7 <img src="https://codecov.io/gh/encode/http3/branch/master/graph/badge.svg" alt="Coverage">

Merge pull request #43 from encode/badgesTom Christiebefore adoption3553625

line 8why, one step back
8</a>

http3 (#86)Tom Christiebefore adoptionc9747aa

lines 9–10why, one step back
9<a href="https://pypi.org/project/http3/">
10 <img src="https://badge.fury.io/py/http3.svg" alt="Package version">

Merge pull request #43 from encode/badgesTom Christiebefore adoption3553625

lines 11–12why, one step back
11</a>
12

'For Python 3'Tom Christiebefore adoptionf296e6d

line 13why, one step back
13HTTP3 is a next-generation HTTP client for Python 3.

Update READMETom Christiebefore adoption665743a

line 14why, one step back
14

Tweak README (#87)Tom Christiebefore adoption9507ce2

line 15why, one step back
15**Note**: *This project should be considered as an "alpha" release. It is substantially API complete, but there are still some areas that need more work.*

Update README.mdTom Christiebefore adoption1e98f31

line 16why, one step back
16

Tweak README (#87)Tom Christiebefore adoption9507ce2

lines 17–42why, one step back
17---
1819Let's get started...2021```python22>>> import http323>>> r = http3.get('https://www.example.org/')24>>> r.status_code25<StatusCode.OK: 200>26>>> r.protocol27'HTTP/2'28>>> r.headers['content-type']29'text/html; charset=UTF-8'30>>> r.text31'<!doctype html>\n<html>\n<head>\n<title>Example Domain</title>...'32```3334## Features3536HTTP3 builds on the well-established usability of `requests`, and gives you:3738* A requests-compatible API.39* HTTP/2 and HTTP/1.1 support.40* Support for issuing HTTP requests in parallel.41* Standard synchronous interface, but with `async`/`await` support if you need it.42* Strict timeouts everywhere.

Truckin' onTom Christiebefore adoption6b60d95

line 43why, one step back
43* Fully type annotated.

Update README.mdTom Christiebefore adoption23e0786

line 44why, one step back
44* 100% test coverage.

Update READMETom Christiebefore adoption665743a

line 45why, one step back
45

Tweak README (#87)Tom Christiebefore adoption9507ce2

line 46why, one step back
46Plus all the standard features of `requests`...

Update READMETom Christiebefore adoption665743a

line 47why, one step back
47

Truckin' onTom Christiebefore adoption6b60d95

lines 48–49why, one step back
48* International Domains and URLs
49* Keep-Alive & Connection Pooling

Add cookie interfacesTom Christiebefore adoption0717998

line 50why, one step back
50* Sessions with Cookie Persistence

Truckin' onTom Christiebefore adoption6b60d95

line 51why, one step back
51* Browser-style SSL Verification

Tweak README (#87)Tom Christiebefore adoption9507ce2

line 52why, one step back
52* Basic/Digest Authentication *Digest is still TODO*

Add cookie interfacesTom Christiebefore adoption0717998

line 53why, one step back
53* Elegant Key/Value Cookies

Truckin' onTom Christiebefore adoption6b60d95

lines 54–56why, one step back
54* Automatic Decompression
55* Automatic Content Decoding56* Unicode Response Bodies

Add multipart docsTom Christiebefore adoptiond21e3ab

line 57why, one step back
57* Multipart File Uploads

Truckin' onTom Christiebefore adoption6b60d95

lines 58–60why, one step back
58* HTTP(S) Proxy Support *TODO*
59* Connection Timeouts60* Streaming Downloads

Update READMETom Christiebefore adoption58461d4

line 61why, one step back
61* .netrc Support *TODO*

Truckin' onTom Christiebefore adoption6b60d95

line 62why, one step back
62* Chunked Requests

Update READMETom Christiebefore adoption665743a

line 63why, one step back
63

Docs tweaksTom Christiebefore adoption60dca3d

lines 64–73why, one step back
64## Installation
6566Install with pip:6768```shell69$ pip install http370```7172HTTP3 requires Python 3.6+73

Tweak README (#87)Tom Christiebefore adoption9507ce2

line 74why, one step back
74## Documentation

Update README.mdTom Christiebefore adoption01a3c09

line 75why, one step back
75

Docs linksTom Christiebefore adoptionc2c87e1

line 76why, one step back
76Project documentation is available at [www.encode.io/http3/](https://www.encode.io/http3/).

Update README.mdTom Christiebefore adoption337eb70

line 77why, one step back
77

Docs linksTom Christiebefore adoptionc2c87e1

line 78why, one step back
78For a run-through of all the basics, head over to the [QuickStart](https://www.encode.io/http3/quickstart/).

StuffTom Christiebefore adoption30530d4

line 79why, one step back
79

Docs linksTom Christiebefore adoptionc2c87e1

lines 80–82why, one step back
80For more advanced topics, see the [Parallel Requests](https://www.encode.io/http3/parallel/) or [Async Client](https://www.encode.io/http3/async/) documentation.
8182The [Developer Interface](https://www.encode.io/http3/api/) provides a comprehensive API reference.

StuffTom Christiebefore adoption30530d4

line 83why, one step back
83

Update READMETom Christiebefore adoption4fe2f69

lines 84–85why, one step back
84## Dependencies
85

Tweak README (#87)Tom Christiebefore adoption9507ce2

lines 86–87why, one step back
86The HTTP3 project relies on these excellent libraries:
87

Update READMETom Christiebefore adoption4fe2f69

line 88why, one step back
88* `h2` - HTTP/2 support.

Add cookie interfacesTom Christiebefore adoption0717998

line 89why, one step back
89* `h11` - HTTP/1.1 support.

Update READMETom Christiebefore adoption4fe2f69

lines 90–95why, one step back
90* `certifi` - SSL certificates.
91* `chardet` - Fallback auto-detection for response encoding.92* `idna` - Internationalized domain name support.93* `rfc3986` - URL parsing & normalization.94* `brotlipy` - Decoding for "brotli" compressed responses. *(Optional)*95

Update READMETom Christiebefore adoption58461d4

line 96why, one step back
96A huge amount of credit is due to `requests` for the API layout that

Update README.mdTom Christiebefore adoption84b9691

lines 97–98why, one step back
97much of this work follows, as well as to `urllib3` for plenty of design
98inspiration around the lower level networking details.

Docs tweaksTom Christiebefore adoption60dca3d

lines 99–101why, one step back
99
100<p align="center">&mdash; ⭐️ &mdash;</p>101<p align="center"><i>HTTP3 is <a href="https://github.com/encode/http3/blob/master/LICENSE.md">BSD licensed</a> code. Designed & built in Brighton, England.</i></p>