>>> 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 .httpx }
>>> import httpx
>>> 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)
```
```{ .python .ahttpx .hidden }
>>> import ahttpx
>>> async def app(request):
... content = httpx.HTML('hello, world.')
... return httpx.Response(200, content=content)
>>> await httpx.run(app)
Serving on http://127.0.0.1:8080/ (Press CTRL+C to quit)
```
---
# Documentation
* [Quickstart](quickstart.md)
* [Clients](clients.md)
* [Servers](servers.md)
* [Requests](requests.md)
* [Responses](responses.md)
* [URLs](urls.md)
* [Headers](headers.md)
* [Content Types](content-types.md)
* [Streams](streams.md)
* [Connections](connections.md)
* [Parsers](parsers.md)
* [Network Backends](networking.md)
---
# Collaboration
The repository for this project is currently private.
We’re 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: *kim@encode.io*
---
This design work is not yet licensed for reuse.
— 🦋 —