fibers_http_client

Crates.iofibers_http_client
lib.rsfibers_http_client
version0.2.0
sourcesrc
created_at2018-07-24 14:37:54.320489
updated_at2023-08-18 11:58:57.064365
descriptionA tiny asynchronous HTTP/1.1 client library
homepagehttps://github.com/sile/fibers_http_client
repositoryhttps://github.com/sile/fibers_http_client
max_upload_size
id75767
size49,160
Takeru Ohta (sile)

documentation

README

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());
Commit count: 29

cargo fmt