Skip to content

hirotake111/rust_fetch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fetch

A dead simple HTTP client with no 3rd party library dependencies. Currently it has limited capabilities as follows:

  • Limited HTTP/1.1 support (no keep-alive, etc.)
  • IPv4 support
  • no localhost lookup

Usage in bash

fetch get example.com

API Usage example

use fetch::{http::Method, Client};

let client = Client::new(); // initialize HTTP client
let response = client.perform(Method::GET, "http://example.com".to_string(), None); // perform HTTP request
println!("{response:?}");

About

An HTTP client CLI with no dependencies

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages