Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.

wacker-dev/wasi-http-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deprecated

wasi-http-client has been merged into waki, please use waki instead.

wasi-http-client

HTTP client library for WASI Preview 2, making it easier to send http(s) requests in WASI components.

let resp = Client::new()
    .post("https://httpbin.org/post")
    .connect_timeout(Duration::from_secs(5))
    .send()?;

println!("status code: {}", resp.status());