pub struct CookieJar {
cookies: BTreeMap<String, CookieRecord>,
}Expand description
インメモリ Cookie ストア
Fields§
Implementations§
Source§impl CookieJar
impl CookieJar
pub const fn new() -> Self
document.cookie = "..." または Set-Cookie の適用
Cookie: name=value; name2=value2 文字列の生成(HTTP リクエスト用または document.cookie 取得用)
Sourcepub fn get(&self, name: &str) -> Option<&CookieRecord>
pub fn get(&self, name: &str) -> Option<&CookieRecord>
Cookie の直接取得
Sourcepub fn all(&self) -> impl Iterator<Item = &CookieRecord>
pub fn all(&self) -> impl Iterator<Item = &CookieRecord>
全 Cookie のイテレータ
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CookieJar
impl RefUnwindSafe for CookieJar
impl Send for CookieJar
impl Sync for CookieJar
impl Unpin for CookieJar
impl UnsafeUnpin for CookieJar
impl UnwindSafe for CookieJar
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more