Expand description
Http utils
This crate contains utilities to work with the HTTP protocol
§Example
use http::prelude::*;
use std::net::TcpStream;
let req = HttpRequest::builder()
.method(HttpMethod::GET)
.url("/")
.build().unwrap();
let tcp = TcpStream::connect("127.0.0.1:80").unwrap();
req.send_to(tcp).unwrap();
Re-exports§
pub use request::HttpRequest;
pub use response::HttpResponse;
Modules§
Macros§
Structs§
- Http
Error - Server Error
Enums§
- Http
Method - Request Method