http/src/lib.rs
2023-02-16 15:24:28 +01:00

27 lines
737 B
Rust

//! **http** library is a light HTTP parser and builder.
//!
//! It parses the request according to the HTTP message specifications and includes `HTTPResponse` to build an HTTP Response.
//!
//! See <https://developer.mozilla.org/en-US/docs/Web/HTTP/Messages> for more details.
//!
//! NOTE: only few parts of the specification has been implemented.
//!
//! * Only JSON body allowed
//! * HTTP Headers not parsed
mod body;
mod message;
mod request;
mod response;
mod start_line;
mod status;
mod version;
pub use body::HTTPBody;
pub use message::JSONMessage;
pub use request::HTTPRequest;
pub use response::HTTPResponse;
pub use start_line::HTTPStartLine;
pub use status::{HTTPStatusCode, HTTPStatusLine};
pub use version::HTTPVersion;