Registry / networking / httparse

httparse

JSON →
library1.10.1rscratesunverified

A tiny, safe, speedy, zero-copy HTTP/1.x parser.

# Cargo.toml [dependencies] httparse = "1.10.1"
INSTALL
IMPORT
SIG · HTTPARSE
H
httparse
networkingrustv1.10.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Request
use httparse::Request;

Parse an HTTP request from a byte buffer.

use httparse::Request; fn main() { let mut req = Request::new(&mut []); let buf = b"GET / HTTP/1.1\r\nHost: example.com\r\n\r\n"; let status = req.parse(buf).unwrap(); println!("Parsed: {:?}", req); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.10.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
httparse — cargo add httparse · libregistry