unmbt/webstd/http does not have a README file
pub(all) suberror WsError {
Closed(code~ : WsCloseCode, reason~ : String)
ProtocolFailure(String)
IoFailure(String)
} derive(Eq, Debug)pub struct ByteStream {
next_chunk : async () -> Bytes?
cancel : (String) -> Unit
}fn ByteStream::ByteStream(next_chunk~ : async () -> Bytes?, cancel? : (String) -> Unit) -> ByteStreamfn CookieOptions::CookieOptions(path? : String, domain? : String, max_age? : Int64, expires? : String, http_only? : Bool, secure? : Bool, same_site? : SameSite, partitioned? : Bool) -> CookieOptionsfn FormData::parse_multipart(content_type : StringView, body : BytesView) -> FormData raise StreamErrorpub struct NdjsonDecoder {
// private fields
}fn Response::with_cookie(self : Response, name : StringView, value : StringView, options? : CookieOptions) -> Responsepub struct SseDecoder {
// private fields
}pub struct TransformStream {
transform : (Bytes) -> Array[Bytes] raise StreamError
flush : () -> Array[Bytes] raise StreamError
}fn TransformStream::TransformStream(transform~ : (Bytes) -> Array[Bytes] raise StreamError, flush? : () -> Array[Bytes] raise StreamError) -> TransformStreamfn TransformStream::process_chunks(self : TransformStream, chunks : Array[Bytes]) -> Array[Bytes] raise StreamErrorfn[T] TypedSseEvent::TypedSseEvent(data~ : T, id? : String, event? : String, retry_ms? : Int) -> TypedSseEvent[T]pub(all) enum WsMessage {
Text(String)
Binary(Bytes)
Ping(Bytes)
Pong(Bytes)
Close(code~ : WsCloseCode, reason~ : String)
} derive(Eq, Debug)fn status_reason(code : Int) -> StringInstall
Download zipPure, zero-dependency WinterTC (ECMA-429) Web Standards primitives (Request, Response, Headers, URL, Cookie, Body, SSE/NDJSON) for MoonBit across all four targets