pub trait RequestMethods<D: DomTypes> {
Show 21 methods
// Required methods
fn Method(&self) -> ByteString;
fn Url(&self) -> USVString;
fn Headers(&self, _can_gc: CanGc) -> DomRoot<D::Headers>;
fn Destination(&self) -> RequestDestination;
fn Referrer(&self) -> USVString;
fn ReferrerPolicy(&self) -> ReferrerPolicy;
fn Mode(&self) -> RequestMode;
fn Credentials(&self) -> RequestCredentials;
fn Cache(&self) -> RequestCache;
fn Redirect(&self) -> RequestRedirect;
fn Integrity(&self) -> DOMString;
fn Clone(&self, _can_gc: CanGc) -> Fallible<DomRoot<D::Request>>;
fn BodyUsed(&self) -> bool;
fn GetBody(&self) -> Option<DomRoot<D::ReadableStream>>;
fn ArrayBuffer(&self, _can_gc: CanGc) -> Rc<D::Promise>;
fn Blob(&self, _can_gc: CanGc) -> Rc<D::Promise>;
fn Bytes(&self, _can_gc: CanGc) -> Rc<D::Promise>;
fn FormData(&self, _can_gc: CanGc) -> Rc<D::Promise>;
fn Json(&self, _can_gc: CanGc) -> Rc<D::Promise>;
fn Text(&self, _can_gc: CanGc) -> Rc<D::Promise>;
fn Constructor(
global: &D::GlobalScope,
proto: Option<HandleObject<'_>>,
can_gc: CanGc,
input: RequestOrUSVString<D>,
init: RootedTraceableBox<RequestInit<D>>,
) -> Fallible<DomRoot<D::Request>>;
}
Required Methods§
fn Method(&self) -> ByteString
fn Url(&self) -> USVString
fn Headers(&self, _can_gc: CanGc) -> DomRoot<D::Headers>
fn Destination(&self) -> RequestDestination
fn Referrer(&self) -> USVString
fn ReferrerPolicy(&self) -> ReferrerPolicy
fn Mode(&self) -> RequestMode
fn Credentials(&self) -> RequestCredentials
fn Cache(&self) -> RequestCache
fn Redirect(&self) -> RequestRedirect
fn Integrity(&self) -> DOMString
fn Clone(&self, _can_gc: CanGc) -> Fallible<DomRoot<D::Request>>
fn BodyUsed(&self) -> bool
fn GetBody(&self) -> Option<DomRoot<D::ReadableStream>>
fn ArrayBuffer(&self, _can_gc: CanGc) -> Rc<D::Promise>
fn Blob(&self, _can_gc: CanGc) -> Rc<D::Promise>
fn Bytes(&self, _can_gc: CanGc) -> Rc<D::Promise>
fn FormData(&self, _can_gc: CanGc) -> Rc<D::Promise>
fn Json(&self, _can_gc: CanGc) -> Rc<D::Promise>
fn Text(&self, _can_gc: CanGc) -> Rc<D::Promise>
fn Constructor( global: &D::GlobalScope, proto: Option<HandleObject<'_>>, can_gc: CanGc, input: RequestOrUSVString<D>, init: RootedTraceableBox<RequestInit<D>>, ) -> Fallible<DomRoot<D::Request>>
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.