Hyper: HTTP/2 Client for Python

0.7.0 · abandoned · verified Mon Apr 13

Hyper is a Python library designed to provide an HTTP/2 client. While it aimed to offer benefits like improved speed and lower bandwidth usage, the project is no longer maintained. The current and final version is 0.7.0, and there is no ongoing release cadence.

Warnings

Install

Imports

Quickstart

This example demonstrates how to make a basic GET request to an HTTP/2 testing service using `hyper.HTTPConnection`. The API is designed to be similar to Python's built-in `http.client`.

from hyper import HTTPConnection

conn = HTTPConnection('http2bin.org:443')
conn.request('GET', '/get')
resp = conn.get_response()
print(resp.read().decode('utf-8'))

view raw JSON →