This version of the module is deprecated: Merged into gaato/mttp (0.3 and later), the module an app adds. See https://github.com/gaato/mttp
gaato/http Transport over moonbitlang/async. Native and js targets.
pub struct AsyncClock {
}impl Clock for AsyncClocktest {
let _ = @adapter.AsyncClock::new()
}pub struct AsyncTransport {
// private fields
}impl Transport for AsyncTransportasync fn send_stream(self : AsyncTransport, request : Request) -> (ResponseHead, &BodyStream) raise HttpErrortest {
let transport = @adapter.AsyncTransport::new()
transport.close()
assert_eq(transport.idle_connections(), 0)
}fn AsyncTransport::new(timeout_ms? : Int, max_idle_per_origin? : Int, idle_max_ms? : Int) -> AsyncTransporttest {
let _ = @adapter.AsyncTransport::new(timeout_ms=1000)
let _ = @adapter.AsyncTransport::new(max_idle_per_origin=0)
}async fn AsyncTransport::send_stream(self : AsyncTransport, request : Request) -> (ResponseHead, &BodyStream) raise HttpErrorInstall
Download zipgaato/http Transport over moonbitlang/async. Native and js targets.