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§

Source

fn Method(&self) -> ByteString

Source

fn Url(&self) -> USVString

Source

fn Headers(&self, _can_gc: CanGc) -> DomRoot<D::Headers>

Source

fn Destination(&self) -> RequestDestination

Source

fn Referrer(&self) -> USVString

Source

fn ReferrerPolicy(&self) -> ReferrerPolicy

Source

fn Mode(&self) -> RequestMode

Source

fn Credentials(&self) -> RequestCredentials

Source

fn Cache(&self) -> RequestCache

Source

fn Redirect(&self) -> RequestRedirect

Source

fn Integrity(&self) -> DOMString

Source

fn Clone(&self, _can_gc: CanGc) -> Fallible<DomRoot<D::Request>>

Source

fn BodyUsed(&self) -> bool

Source

fn GetBody(&self) -> Option<DomRoot<D::ReadableStream>>

Source

fn ArrayBuffer(&self, _can_gc: CanGc) -> Rc<D::Promise>

Source

fn Blob(&self, _can_gc: CanGc) -> Rc<D::Promise>

Source

fn Bytes(&self, _can_gc: CanGc) -> Rc<D::Promise>

Source

fn FormData(&self, _can_gc: CanGc) -> Rc<D::Promise>

Source

fn Json(&self, _can_gc: CanGc) -> Rc<D::Promise>

Source

fn Text(&self, _can_gc: CanGc) -> Rc<D::Promise>

Source

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.

Implementors§