Module httparse

Source
Expand description

§httparse

A push library for parsing HTTP/1.x requests and responses.

Originally written by Sean McArthur.

Modified by Jude Nelson to remove all unsafe code.

Structs§

Bytes
Bytes8
Header
Represents a parsed header.
Request
A parsed Request.
Response
A parsed Response.

Enums§

Error
An error in parsing.
Status
The result of a successful parse pass.

Constants§

EMPTY_HEADER
An empty header, useful for constructing a Header array to pass in for parsing.

Functions§

parse_chunk_size
Parse a buffer of bytes as a chunk size.
parse_headers
Parse a buffer of bytes as headers.

Type Aliases§

Result
A Result of any parsing action.