saiksaketh / h2-example

HTTP/2 client&server example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

H2-example

An example of HTTP/2 client and server implemented with hyper-h2. Initially, the client sends a POST request to the server and the server responses with the corresponding content. Meanwhile, the server uses SERVER PUSH to send a new response before receiving the request from the client.

Install

The code is tested on Python 3.6.5. Running on other versions may require some changes in the code.

python3 -m venv .venv
source .venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt

Start Server

python -m basic.server

Start Client

python -m basic.client

About

HTTP/2 client&server example


Languages

Language:Python 99.8%Language:HTML 0.2%