djstein / django-http3-example

Example Repo of Django using HTTP/3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

django-http3-example

Run the server:

poetry install
poetry shell
hypercorn --quic-bind localhost:8000 server.asgi:application --keyfile certs/ssl_key.pem --ca-cert certs/pycacerts.pem --certfile certs/ssl_cert.pem

in another terminal run a client: The basic one:

python client.py --ca-certs certs/pycacerts.pem https://127.0.0.1:8000/

Or the httpx one:

python httpx_client.py --ca-certs certs/pycacerts.pem https://127.0.0.1:8000/

Clients taken from https://github.com/aiortc/aioquic and added logging of response data

About

Example Repo of Django using HTTP/3

License:MIT License


Languages

Language:Python 97.7%Language:Shell 2.3%