barehttp 0.1.0

Blocking HTTP/1.1 client for no_std + alloc
Documentation
1
2
3
4
5
6
7
//! Minimal GET.

fn main() -> Result<(), barehttp::Error> {
  let response = barehttp::get("http://example.com").call()?;
  println!("{} {}", response.status_code(), response.to_text()?);
  Ok(())
}