pub trait RequestMethods<D: DomTypes> {
Show 27 methods
// Required methods
fn Method(&self) -> ByteString;
fn Url(&self) -> USVString;
fn Headers(&self, cx: &mut JSContext) -> 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 Keepalive(&self) -> bool;
fn IsReloadNavigation(&self) -> bool;
fn IsHistoryNavigation(&self) -> bool;
fn Signal(&self) -> DomRoot<D::AbortSignal>;
fn Duplex(&self) -> RequestDuplex;
fn Clone(&self, cx: &mut JSContext) -> Fallible<DomRoot<D::Request>>;
fn BodyUsed(&self) -> bool;
fn GetBody(&self) -> Option<DomRoot<D::ReadableStream>>;
fn ArrayBuffer(
&self,
cx: &mut JSContext,
) -> <D::Promise as PromiseHelpers<D>>::StackRoot;
fn Blob(
&self,
cx: &mut JSContext,
) -> <D::Promise as PromiseHelpers<D>>::StackRoot;
fn Bytes(
&self,
cx: &mut JSContext,
) -> <D::Promise as PromiseHelpers<D>>::StackRoot;
fn FormData(
&self,
cx: &mut JSContext,
) -> <D::Promise as PromiseHelpers<D>>::StackRoot;
fn Json(
&self,
cx: &mut JSContext,
) -> <D::Promise as PromiseHelpers<D>>::StackRoot;
fn Text(
&self,
cx: &mut JSContext,
) -> <D::Promise as PromiseHelpers<D>>::StackRoot;
fn TextStream(
&self,
cx: &mut JSContext,
) -> Fallible<DomRoot<D::ReadableStream>>;
fn Constructor(
cx: &mut JSContext,
global: &D::GlobalScope,
proto: Option<HandleObject<'_>>,
input: RequestOrUSVString<D>,
init: RootedTraceableBox<RequestInit<D>>,
) -> Fallible<DomRoot<D::Request>>;
}Required Methods§
fn Method(&self) -> ByteString
fn Url(&self) -> USVString
fn Headers(&self, cx: &mut JSContext) -> 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 Keepalive(&self) -> bool
fn Signal(&self) -> DomRoot<D::AbortSignal>
fn Duplex(&self) -> RequestDuplex
fn Clone(&self, cx: &mut JSContext) -> Fallible<DomRoot<D::Request>>
fn BodyUsed(&self) -> bool
fn GetBody(&self) -> Option<DomRoot<D::ReadableStream>>
fn ArrayBuffer( &self, cx: &mut JSContext, ) -> <D::Promise as PromiseHelpers<D>>::StackRoot
fn Blob( &self, cx: &mut JSContext, ) -> <D::Promise as PromiseHelpers<D>>::StackRoot
fn Bytes( &self, cx: &mut JSContext, ) -> <D::Promise as PromiseHelpers<D>>::StackRoot
fn FormData( &self, cx: &mut JSContext, ) -> <D::Promise as PromiseHelpers<D>>::StackRoot
fn Json( &self, cx: &mut JSContext, ) -> <D::Promise as PromiseHelpers<D>>::StackRoot
fn Text( &self, cx: &mut JSContext, ) -> <D::Promise as PromiseHelpers<D>>::StackRoot
fn TextStream(&self, cx: &mut JSContext) -> Fallible<DomRoot<D::ReadableStream>>
fn Constructor( cx: &mut JSContext, global: &D::GlobalScope, proto: Option<HandleObject<'_>>, 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.