gaato/http/cookie does not have a README file
pub struct CookieJar {
// private fields
}test {
let jar = @cookie.CookieJar::new(@mock.FakeClock::new())
jar.store(
@http.Headers::from_array([("Set-Cookie", "sid=1; Path=/; Secure")]),
"https://example.com/login",
)
assert_eq(jar.header_for("https://example.com/"), Some("sid=1"))
assert_eq(jar.header_for("http://example.com/"), None)
}test {
let jar = @cookie.CookieJar::new(@mock.FakeClock::new())
let _ : @http.Middleware = @cookie.cookies(jar)
}Install
Download zipSans-IO HTTP vocabulary for MoonBit SDKs: request/response types, a Transport trait, Retry-After and Link parsing, a multipart writer, an incremental SSE parser, an RFC 6265 cookie jar and a scripted fake transport. No dependencies; runs on every backend.