Skip to main content

No project description provided

Project description

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)

Project details


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 hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page