pub(crate) trait HeadersMethods<D>where
D: DomTypes,{
// 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: &<D as DomTypes>::GlobalScope,
proto: Option<Handle<'_, *mut JSObject>>,
can_gc: CanGc,
init: Option<ByteStringSequenceSequenceOrByteStringByteStringRecord>,
) -> Result<Root<Dom<<D as DomTypes>::Headers>>, Error>;
}
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: &<D as DomTypes>::GlobalScope, proto: Option<Handle<'_, *mut JSObject>>, can_gc: CanGc, init: Option<ByteStringSequenceSequenceOrByteStringByteStringRecord>, ) -> Result<Root<Dom<<D as DomTypes>::Headers>>, Error>
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.