8 lines
228 B
Rust
8 lines
228 B
Rust
//! This is a simple example to demonstrate the usage of this library.
|
|
|
|
fn main() -> Result<(), minreq::Error> {
|
|
let response = minreq::get("http://example.com").send()?;
|
|
println!("{}", response.as_str()?);
|
|
Ok(())
|
|
}
|