Go to file
2025-09-16 18:59:11 +01:00
.github Initial commit 2025-09-16 18:59:11 +01:00
docs Initial commit 2025-09-16 18:59:11 +01:00
scripts Initial commit 2025-09-16 18:59:11 +01:00
src Initial commit 2025-09-16 18:59:11 +01:00
tests Initial commit 2025-09-16 18:59:11 +01:00
.gitignore Initial commit 2025-09-16 18:59:11 +01:00
pyproject.toml Initial commit 2025-09-16 18:59:11 +01:00
README.md Initial commit 2025-09-16 18:59:11 +01:00
requirements.txt Initial commit 2025-09-16 18:59:11 +01:00

HTTPX

HTTPX 1.0 — Design proposal.


A complete HTTP framework for Python.

Installation...

$ pip install --pre httpx

Making requests as a client...

>>> r = httpx.get('https://www.example.org/')
>>> r
<Response [200 OK]>
>>> r.status_code
200
>>> r.headers['content-type']
'text/html; charset=UTF-8'
>>> r.text
'<!doctype html>\n<html>\n<head>\n<title>Example Domain</title>...'

Serving responses as the server...

>>> def app(request):
...     content = httpx.HTML('<html><body>hello, world.</body></html>')
...     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 is now available.


Collaboration

The repository for this project is currently private.

Were looking at creating paid opportunities for working on open source software which are properly compensated, flexible & well balanced.

If you're interested in a position working on this project, please send an intro.


This provisional design work is not currently licensed for reuse.
Designed & crafted with care.

🦋