Skip to main content
https://travis-ci.org/dontcare/httpparser.svg?branch=master https://img.shields.io/pypi/v/httpparser.svg

httpparser is a Python binding for PicoHttpParser

Installation

httpparser requires Python 2.7, 3.4+ and is available on PyPI.

Use pip to install it:

``pip install httpparser``

Using httpparser

import httpparser


            class Protocol:

                def __init__(self):
                                self.parser = httpparser.Request(self)


                            def on_header(self, name, value):
                                pass

                            def on_headers(self, headers):
                                pass

                            def on_uri(self, uri):
                                pass

                            def on_body(self, body):
                                pass

                            def on_complete(self):
                                pass

                            def data_received(self, data):
        self.parser.parse(data)

Download files

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

Source Distribution

httpparser-0.2.6.tar.gz (4.1 kB view details)

Uploaded Source

File details

Details for the file httpparser-0.2.6.tar.gz.

File metadata

  • Download URL: httpparser-0.2.6.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for httpparser-0.2.6.tar.gz
Algorithm Hash digest
SHA256 1fee92f288e50edecb3a926c8ea2f0182199f7cc835a3f2171dc07331a0d9b56
MD5 63da08ca225b80aa625f59554862e77c
BLAKE2b-256 1cba2f76bac69abacd6a677d7e450dbeda58dffd4c1648100d92ffd0bf774413

See more details on using hashes here.

Release history Release notifications | RSS feed

0.3.12

11 files

0.3.11

7 files

0.3.10

14 files

0.3.9

10 files

0.3.8

1 file

0.3.7

1 file

0.3.6

1 file

0.3.5

1 file

0.3.4

1 file

0.3.3

1 file

0.3.2

1 file

0.3.1

1 file

0.3.0

1 file

This release

0.2.6 This release

1 file

0.2.5

1 file

0.2.4

6 files

0.2.3

0.2.2

1 file

0.2.1

0.2.0

1 file

0.1.3

1 file

0.1.2

1 file

0.1.1

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page