Skip to content

Repository files navigation

waki

HTTP client and server library for WASI.

Send a request:

let resp = Client::new().post("https://httpbin.org/post").connect_timeout(Duration::from_secs(5)).send()?;println!("status code: {}", resp.status_code());

Writing an HTTP component:

use waki::{handler,ErrorCode,Request,Response};#[handler]fnhello(req:Request) -> Result<Response,ErrorCode>{Response::builder().body(b"Hello, WASI!").build()}

About

HTTP client and server library for WASI.

Topics

Resources

Stars

35 stars

Watchers

1 watching

Forks

Releases

Used by

Contributors

Languages