pub trait HeadersMethods<D: DomTypes> {
    // Required methods
    fn Append(&self, name: ByteString, value: ByteString) -> Fallible<()>;
    fn Delete(&self, name: ByteString) -> Fallible<()>;
    fn Get(&self, name: ByteString) -> Fallible<Option<ByteString>>;
    fn GetSetCookie(&self) -> Vec<ByteString>;
    fn Has(&self, name: ByteString) -> Fallible<bool>;
    fn Set(&self, name: ByteString, value: ByteString) -> Fallible<()>;
    fn Constructor(
        global: &D::GlobalScope,
        proto: Option<HandleObject<'_>>,
        can_gc: CanGc,
        init: Option<ByteStringSequenceSequenceOrByteStringByteStringRecord>,
    ) -> Fallible<DomRoot<D::Headers>>;
}

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§