Skip to main content

Push parser for HTTP 1.x

Project description

httparse

CI

Python wrapper for Rust's httparse. See this project on GitHub.

Example

from httparse import RequestParser

parser = RequestParser()

buff = b"GET /index.html HTTP/1.1\r\nHost"
parsed = parser.parse(buff)
assert parsed is None

# a partial request, so we try again once we have more data
buff = b"GET /index.html HTTP/1.1\r\nHost: example.domain\r\n\r\n"
parsed = parser.parse(buff)
assert parsed is not None
assert parsed.method == "GET"
assert parsed.path == "/index.html"
assert parsed.version == 1
assert parsed.body_start_byte_offset == len(buff)
headers = [(h.name, h.value.encode()) for h in parsed.headers]
assert headers == [(b"Host", b"example.com")]

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

httparse-0.1.1.tar.gz (9.5 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

httparse-0.1.1-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (207.8 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ x86-64

httparse-0.1.1-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (194.1 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

httparse-0.1.1-pp39-pypy39_pp73-macosx_10_7_x86_64.whl (188.4 kB view details)

Uploaded PyPymacOS 10.7+ x86-64

httparse-0.1.1-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (208.3 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ x86-64

httparse-0.1.1-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (194.5 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

httparse-0.1.1-pp38-pypy38_pp73-macosx_10_7_x86_64.whl (188.1 kB view details)

Uploaded PyPymacOS 10.7+ x86-64

httparse-0.1.1-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (210.6 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ x86-64

httparse-0.1.1-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (196.0 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

httparse-0.1.1-pp37-pypy37_pp73-macosx_10_7_x86_64.whl (190.1 kB view details)

Uploaded PyPymacOS 10.7+ x86-64

httparse-0.1.1-cp37-abi3-win_amd64.whl (132.9 kB view details)

Uploaded CPython 3.7+Windows x86-64

httparse-0.1.1-cp37-abi3-win32.whl (127.2 kB view details)

Uploaded CPython 3.7+Windows x86

httparse-0.1.1-cp37-abi3-musllinux_1_2_x86_64.whl (379.1 kB view details)

Uploaded CPython 3.7+musllinux: musl 1.2+ x86-64

httparse-0.1.1-cp37-abi3-musllinux_1_2_i686.whl (401.5 kB view details)

Uploaded CPython 3.7+musllinux: musl 1.2+ i686

httparse-0.1.1-cp37-abi3-musllinux_1_2_armv7l.whl (456.8 kB view details)

Uploaded CPython 3.7+musllinux: musl 1.2+ ARMv7l

httparse-0.1.1-cp37-abi3-musllinux_1_2_aarch64.whl (373.8 kB view details)

Uploaded CPython 3.7+musllinux: musl 1.2+ ARM64

httparse-0.1.1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (207.8 kB view details)

Uploaded CPython 3.7+manylinux: glibc 2.17+ x86-64

httparse-0.1.1-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl (261.6 kB view details)

Uploaded CPython 3.7+manylinux: glibc 2.17+ s390x

httparse-0.1.1-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (291.1 kB view details)

Uploaded CPython 3.7+manylinux: glibc 2.17+ ppc64le

httparse-0.1.1-cp37-abi3-manylinux_2_17_ppc64.manylinux2014_ppc64.whl (303.8 kB view details)

Uploaded CPython 3.7+manylinux: glibc 2.17+ ppc64

httparse-0.1.1-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (193.8 kB view details)

Uploaded CPython 3.7+manylinux: glibc 2.17+ ARMv7l

httparse-0.1.1-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (193.8 kB view details)

Uploaded CPython 3.7+manylinux: glibc 2.17+ ARM64

httparse-0.1.1-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl (227.5 kB view details)

Uploaded CPython 3.7+manylinux: glibc 2.5+ i686

httparse-0.1.1-cp37-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (369.3 kB view details)

Uploaded CPython 3.7+macOS 10.9+ universal2 (ARM64, x86-64)macOS 10.9+ x86-64macOS 11.0+ ARM64

httparse-0.1.1-cp37-abi3-macosx_10_7_x86_64.whl (185.4 kB view details)

Uploaded CPython 3.7+macOS 10.7+ x86-64

File details

Details for the file httparse-0.1.1.tar.gz.

File metadata

  • Download URL: httparse-0.1.1.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.0

File hashes

Hashes for httparse-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b0835a210f4e7183637367169638eab1d75576c3455912c4698601b41e4bbf9b
MD5 cf8c737bcd1bcb0f859e3e5c5e277477
BLAKE2b-256 71471dc42950959465ffeec5c45210d218c4384ee48627ff81c87768e4f1aa11

See more details on using hashes here.

File details

Details for the file httparse-0.1.1-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for httparse-0.1.1-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1240029bcfa574e6f443cdeec9e24f473404d50685afa54acb888ed3000d78b1
MD5 e41415e72b84e9482ea180a168a63f31
BLAKE2b-256 4a4afe9e523232d5f56b64409a72268dba092c48ce7ec0d2c19d2eb3946b9a03

See more details on using hashes here.

File details

Details for the file httparse-0.1.1-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for httparse-0.1.1-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 9bb4ca0f61d379701b14578584cc9d33ddaf8df185d7957edf938b8d455e7509
MD5 627b43b41a8f8032713759535c0e45c6
BLAKE2b-256 1f605c62db029483946ce93f4837697c266d5292c5c50e0c051275e5bbd03d29

See more details on using hashes here.

File details

Details for the file httparse-0.1.1-pp39-pypy39_pp73-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for httparse-0.1.1-pp39-pypy39_pp73-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 1a4e86073696d85feb1477e7f0eda7cab2dd43bb31c6ffb901a056ad06031532
MD5 1e2140c77d0c875f9462c9453f9a4498
BLAKE2b-256 ce8311ef3262a5bb7613978a6d30244857918cbe89ec7dd1851967bcd486c09a

See more details on using hashes here.

File details

Details for the file httparse-0.1.1-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for httparse-0.1.1-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7cbe701f60048aa754d0b793b562902f6728af0cdb06e3142c681c05ee615695
MD5 90a9e2e0d4f867fd588ba24d266fefb9
BLAKE2b-256 c6ad48b538b5589881f735e46cb1532ff4787bea2af18d5b8a8eb60e83899998

See more details on using hashes here.

File details

Details for the file httparse-0.1.1-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for httparse-0.1.1-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 52447f37c1190db3663e14747b916052741cfd515fbabe16851d6fa683921e0d
MD5 6f8edd05f82c85dd6b265a209f87e1b9
BLAKE2b-256 2a0d50c52fcc76c3a74313616af2853715e202b45dbc30452d74b42c02cdd6e3

See more details on using hashes here.

File details

Details for the file httparse-0.1.1-pp38-pypy38_pp73-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for httparse-0.1.1-pp38-pypy38_pp73-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 210a31ac91fd2bb349b74f18bd6627c74c08e2f835dcf4226a452bda9d6c1651
MD5 b2d41dbac9094eac2bf8ed853f0d7baf
BLAKE2b-256 afa729dae7136e81e3c66414663ae66813f0d1cb0f67437fc09be1621eebfa77

See more details on using hashes here.

File details

Details for the file httparse-0.1.1-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for httparse-0.1.1-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 cd94f78b5d98e21db6c47ad49722cb332dc1b53c8b27dd9fd573c74bb24491c3
MD5 3438622a16d334a5e9a15db4955479e5
BLAKE2b-256 0b3edb735b412d682b4bcef39c9364646927a0604a3788cd7509057231e81003

See more details on using hashes here.

File details

Details for the file httparse-0.1.1-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for httparse-0.1.1-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 f0b2f41a71f367fac42a46da5d096a252c8c569547d9cad351c92ecfe276130d
MD5 ecbdcc485e8e172026e89b5130771916
BLAKE2b-256 ec0d9d5aa4eed224317d490dd3e1306955af19518145bb5005bc0b604fbb318f

See more details on using hashes here.

File details

Details for the file httparse-0.1.1-pp37-pypy37_pp73-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for httparse-0.1.1-pp37-pypy37_pp73-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 f9a11a9e33698e435d992d7ea62671e4990e102910b7dde99ad348a94ddd3858
MD5 ba56d6c27d6da51ba968076133ae7f1f
BLAKE2b-256 dc114fa3256750ba932dd9daeacb87b17963df3120ae3066f678c638f708adab

See more details on using hashes here.

File details

Details for the file httparse-0.1.1-cp37-abi3-win_amd64.whl.

File metadata

  • Download URL: httparse-0.1.1-cp37-abi3-win_amd64.whl
  • Upload date:
  • Size: 132.9 kB
  • Tags: CPython 3.7+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.0

File hashes

Hashes for httparse-0.1.1-cp37-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 d2fc65936638fca5dc6126922c78295a1bb23ba3036d819dc76f7c42c074b64e
MD5 5a8c2d5659a456e8208ae3524ff02131
BLAKE2b-256 55fc4e0d26ae04e1382abb3f1e986f8ce983f8d4762d60826ea82599c193d124

See more details on using hashes here.

File details

Details for the file httparse-0.1.1-cp37-abi3-win32.whl.

File metadata

  • Download URL: httparse-0.1.1-cp37-abi3-win32.whl
  • Upload date:
  • Size: 127.2 kB
  • Tags: CPython 3.7+, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.0

File hashes

Hashes for httparse-0.1.1-cp37-abi3-win32.whl
Algorithm Hash digest
SHA256 bb7672e8a72070d6b44f60d7f9d332f5a3bd9e9e3812bb799197da38d1a2aa34
MD5 7150bd555e11fcac8dc94ac8256369f5
BLAKE2b-256 30343fc3d0cda8a343eff61cdc2181daea0333e51273cd4c2047f86675246aa7

See more details on using hashes here.

File details

Details for the file httparse-0.1.1-cp37-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for httparse-0.1.1-cp37-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 5f8233bd869c99ff60009af43ff46e1fe442a8f0d0e0aecbbf891a3f2ff31889
MD5 ee9d8ce58c98c4d5f07f08c1bdf89832
BLAKE2b-256 78f63d0f7cee4699e132d45cd4802eecd4944023c3915f3e4a2681b481e4b159

See more details on using hashes here.

File details

Details for the file httparse-0.1.1-cp37-abi3-musllinux_1_2_i686.whl.

File metadata

File hashes

Hashes for httparse-0.1.1-cp37-abi3-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 13927d770af467e59c15141095663379ab203cd9e843f1b9f97f1f15f211d232
MD5 0b310550ed4366fee576ae71ce2c3107
BLAKE2b-256 e004888a9caf250d9de62263462522d049133982e4e2c58ba5e216e4e04e22e6

See more details on using hashes here.

File details

Details for the file httparse-0.1.1-cp37-abi3-musllinux_1_2_armv7l.whl.

File metadata

File hashes

Hashes for httparse-0.1.1-cp37-abi3-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 7fc834d892d3b70f21cc4cbaca17eab8c3c7ca09d2af031817d1cb7e637e9de9
MD5 122294563f8916d126f0eee01a82de67
BLAKE2b-256 0a47fd8c31e7292ef92bc4bde6e66ad1bf8d956fe4bd99c8d6bf2721c2b484e9

See more details on using hashes here.

File details

Details for the file httparse-0.1.1-cp37-abi3-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for httparse-0.1.1-cp37-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 3e4707db2e4864869f3035844032ccaad61440cb39315f949e765b41672bd02a
MD5 70a53c7fd47a933c9b662bdf45c6c651
BLAKE2b-256 93b9264705514c586e781974da6d0704881436a40924a20f7ac54ebe9102c98a

See more details on using hashes here.

File details

Details for the file httparse-0.1.1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for httparse-0.1.1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 51d5b47a159867381aab586f10a1af3a450ad45176ce9368bce623f5f2ceb76a
MD5 b77c9d84bfc7c7aebdfb9efb24a83bc3
BLAKE2b-256 af846f6d71f038135699287968f69122ce2e107d94cefdd0cfcb9f6403bd16c2

See more details on using hashes here.

File details

Details for the file httparse-0.1.1-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl.

File metadata

File hashes

Hashes for httparse-0.1.1-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 a706768fcf34f89de9231d4cf6ace977c147b091e9a184d72d8d74f713c375ef
MD5 c6c4d7aa356ffd661591742d3d1c8f38
BLAKE2b-256 0694573bf457b569f94556d6e435b239aaf70dd3c4d09fedaf43664e37d696e6

See more details on using hashes here.

File details

Details for the file httparse-0.1.1-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl.

File metadata

File hashes

Hashes for httparse-0.1.1-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 de6b2cee8b90fdae74f32c3e6b0efaf96a237f0b6db6ae300e10463e56c25280
MD5 01ef15e18c90f73bac139fb59945ece4
BLAKE2b-256 73be066abca3471b762b591b000b1227637be5a792aef7b30d546571a175e61e

See more details on using hashes here.

File details

Details for the file httparse-0.1.1-cp37-abi3-manylinux_2_17_ppc64.manylinux2014_ppc64.whl.

File metadata

File hashes

Hashes for httparse-0.1.1-cp37-abi3-manylinux_2_17_ppc64.manylinux2014_ppc64.whl
Algorithm Hash digest
SHA256 7d3f03ef1cedc3527c2eaf519cc719f641c05270d61ebedf46ae23f8f19fb2ec
MD5 7109cf6b9f6ac156e98e955fe09df255
BLAKE2b-256 189f65bc1913c5b17b5965fe7bccadd759cb16f5fa8e3aa9f33ab6ea8ce644b7

See more details on using hashes here.

File details

Details for the file httparse-0.1.1-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.

File metadata

File hashes

Hashes for httparse-0.1.1-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 43fdda348a15f9522eb5f054040799b6da8662c2d5b070214ef37a3cf1b9fd3c
MD5 e9e6479d8069d78fb2b90a692b4772c5
BLAKE2b-256 b936f3cd919cb5f8d8176f6aa4c8fe0f65ce867fa887bb265f559e4d49bfbd9c

See more details on using hashes here.

File details

Details for the file httparse-0.1.1-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for httparse-0.1.1-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 feadc4399f63b52169e2c2de77ab8a99239a9330f062188f2a1b648ced3a55b9
MD5 9a210d1023c78291626147470468b83c
BLAKE2b-256 2b0d7f40d7b0a48dafe7dba7e7501e8adbdabd01b568455a5bf2fb52bea73951

See more details on using hashes here.

File details

Details for the file httparse-0.1.1-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl.

File metadata

File hashes

Hashes for httparse-0.1.1-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm Hash digest
SHA256 d2d92038ef5d0963205311f7af242e978bb1072e0f319989884ee43f5ad31c0c
MD5 2f4ac7c18bb8b98bc164e06ab80066a1
BLAKE2b-256 b4e530e0c47f5de5b1f018ebc136149ad8f0cce6251ae05baa8395a772cb2679

See more details on using hashes here.

File details

Details for the file httparse-0.1.1-cp37-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for httparse-0.1.1-cp37-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 c5826b166fc06551992fd4a3563c93d4f3c00a58a1e26c77180c4db115959b9b
MD5 76ca33590cf22f110f3dc141e94d38a5
BLAKE2b-256 8bb97e07def94cd81b88295114aaef9500cb126c2b431993da23d68719e91e54

See more details on using hashes here.

File details

Details for the file httparse-0.1.1-cp37-abi3-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for httparse-0.1.1-cp37-abi3-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 fccc36dbd357ddcd5bb923f398c9ab94c31d46ffb0041f93d189ecdc5d04362a
MD5 a761200fd30ce6cebf1f301726a2b7b2
BLAKE2b-256 f303c4c8339610435bb31fb8bc364addbb46e238ab682589f92c6d06426ecd57

See more details on using hashes here.

Supported by

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