Skip to main content

Python binding to Rust httparse.

Project description

Python binding to Rust httparse.

Install:

pip install httparse

Use case:

import httparse

req = b"""
GET /hello.htm HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE5.01; Windows NT)
Host: www.tutorialspoint.com
Accept-Language: en-us
Accept-Encoding: gzip, deflate
Connection: Keep-Alive
"""

parsed: dict = httparse.parse(req)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for httparse, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size httparse-0.2.0-cp37-cp37m-manylinux1_x86_64.whl (110.6 kB) File type Wheel Python version cp37 Upload date Hashes View hashes
Filename, size httparse-0.2.0.tar.gz (1.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page