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

Required Methods§

Object Safety§

This trait is not object safe.

Implementors§