https://github.com/encode/httpnext
HTTPX 1.0 — Design proposal
https://github.com/encode/httpnext
Last synced: 16 days ago
JSON representation
HTTPX 1.0 — Design proposal
- Host: GitHub
- URL: https://github.com/encode/httpnext
- Owner: encode
- Created: 2024-11-04T13:13:50.000Z (over 1 year ago)
- Default Branch: dev
- Last Pushed: 2026-03-09T16:15:43.000Z (20 days ago)
- Last Synced: 2026-03-09T21:45:33.556Z (20 days ago)
- Language: Python
- Size: 1.33 MB
- Stars: 18
- Watchers: 2
- Forks: 0
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
HTTPX 1.0 — Design proposal.
---
A complete HTTP framework for Python.
*Installation...*
```shell
$ pip install --pre httpx
```
*Making requests as a client...*
```python
>>> r = httpx.get('https://www.example.org/')
>>> r
>>> r.status_code
200
>>> r.headers['content-type']
'text/html; charset=UTF-8'
>>> r.text
'\n\n\nExample Domain...'
```
*Serving responses as the server...*
```python
>>> def app(request):
... content = httpx.HTML('hello, world.')
... return httpx.Response(200, content=content)
>>> httpx.run(app)
Serving on http://127.0.0.1:8080/ (Press CTRL+C to quit)
```
---
# Documentation
The [HTTPX 1.0 design proposal](https://www.encode.io/httpnext/) is now available.
* [Quickstart](https://www.encode.io/httpnext/quickstart)
* [Clients](https://www.encode.io/httpnext/clients)
* [Servers](https://www.encode.io/httpnext/servers)
* [Requests](https://www.encode.io/httpnext/requests)
* [Responses](https://www.encode.io/httpnext/responses)
* [URLs](https://www.encode.io/httpnext/urls)
* [Headers](https://www.encode.io/httpnext/headers)
* [Content Types](https://www.encode.io/httpnext/content-types)
* [Connections](https://www.encode.io/httpnext/connections)
* [Parsers](https://www.encode.io/httpnext/parsers)
* [Network Backends](https://www.encode.io/httpnext/networking)
---
This provisional design work is not currently licensed for reuse.
Designed & crafted with care.
— 🦋 —