httptools

0.7.1 · active · verified Sat Mar 28

A Python binding for the Node.js HTTP parser, providing fast and efficient HTTP parsing capabilities. Current version: 0.7.1. Maintained actively with regular updates.

Warnings

Install

Imports

Quickstart

A basic example demonstrating how to import and use the HttpRequestParser class from httptools.

from httptools import HttpRequestParser

# Initialize the parser with a protocol object
parser = HttpRequestParser(protocol)

# Feed data to the parser
parser.feed(data)

# Access parsed data
parsed_data = parser.get_parsed_data()

view raw JSON →