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0 |
0.1.2 | 0 | 0 | 2 | 0 | 0 |
0.1.1 | 0 | 0 | 2 | 0 | 0 |
0.1.0 | 0 | 0 | 2 | 0 | 0 |
1.2.0 - This version is safe to use because it has no known security vulnerabilities at this time. Find out if your coding project uses this component and get notified of any reported security vulnerabilities with Meterian-X Open Source Security Platform
Maintain your licence declarations and avoid unwanted licences to protect your IP the way you intended.
Apache-2.0 - Apache License 2.0A general purpose library of common HTTP types
More information about this crate can be found in the crate documentation.
To use http
, first add this to your Cargo.toml
:
[dependencies]
http = "1.0"
Next, add this to your crate:
use http::{Request, Response};
fn main() {
// ...
}
Create an HTTP request:
use http::Request;
fn main() {
let request = Request::builder()
.uri("https://www.rust-lang.org/")
.header("User-Agent", "awesome/1.0")
.body(())
.unwrap();
}
Create an HTTP response:
use http::{Response, StatusCode};
fn main() {
let response = Response::builder()
.status(StatusCode::MOVED_PERMANENTLY)
.header("Location", "https://www.rust-lang.org/install.html")
.body(())
.unwrap();
}
This project follows the Tokio MSRV and is currently set to 1.49
.
Licensed under either of
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.