Skip to content

sile/fibers_http_client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fibers_http_client

fibers_http_client Documentation License: MIT

A tiny asynchronous HTTP/1.1 client library for Rust.

Documentation

Examples

use fibers_http_client::connection::Oneshot;
use fibers_http_client::Client;
use url::Url;

let url = Url::parse("http://localhost/foo/bar").unwrap();
let mut client = Client::new(Oneshot);
let future = client.request(&url).get();

let response = fibers_global::execute(future).unwrap();
println!("STATUS: {:?}", response.status_code());
println!("BODY: {:?}", response.body());

About

A HTTP/1.1 client library for Rust

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages