seanmonstar / httparse

A push parser for the HTTP 1.x protocol in Rust.
https://docs.rs/httparse
Apache License 2.0
585 stars 114 forks source link

exposing parse_headers() for parsing multipart/form-data #10

Closed mikedilger closed 9 years ago

mikedilger commented 9 years ago

I'm trying to parse multipart/form-data form submissions. I can extract and pass on the header lines of each part into a parser. But which parser? parse_headers() is private and its not obvious how to use it. Advice?

seanmonstar commented 9 years ago

It seems reasonable to expose a free function parse_headers.

mikedilger commented 9 years ago

Thanks! I like the changes