Skip to main content

RequestMethods

pub trait RequestMethods<D>
where D: DomTypes,
{
Show 27 methods // Required methods fn Method(&self) -> ByteString; fn Url(&self) -> USVString; fn Headers(&self, cx: &mut JSContext) -> Root<Dom<<D as DomTypes>::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) -> Root<Dom<<D as DomTypes>::AbortSignal>>; fn Duplex(&self) -> RequestDuplex; fn Clone( &self, cx: &mut JSContext, ) -> Result<Root<Dom<<D as DomTypes>::Request>>, Error>; fn BodyUsed(&self) -> bool; fn GetBody(&self) -> Option<Root<Dom<<D as DomTypes>::ReadableStream>>>; fn ArrayBuffer( &self, cx: &mut JSContext, ) -> <<D as DomTypes>::Promise as PromiseHelpers<D>>::StackRoot; fn Blob( &self, cx: &mut JSContext, ) -> <<D as DomTypes>::Promise as PromiseHelpers<D>>::StackRoot; fn Bytes( &self, cx: &mut JSContext, ) -> <<D as DomTypes>::Promise as PromiseHelpers<D>>::StackRoot; fn FormData( &self, cx: &mut JSContext, ) -> <<D as DomTypes>::Promise as PromiseHelpers<D>>::StackRoot; fn Json( &self, cx: &mut JSContext, ) -> <<D as DomTypes>::Promise as PromiseHelpers<D>>::StackRoot; fn Text( &self, cx: &mut JSContext, ) -> <<D as DomTypes>::Promise as PromiseHelpers<D>>::StackRoot; fn TextStream( &self, cx: &mut JSContext, ) -> Result<Root<Dom<<D as DomTypes>::ReadableStream>>, Error>; fn Constructor( cx: &mut JSContext, global: &<D as DomTypes>::GlobalScope, proto: Option<Handle<'_, *mut JSObject>>, input: RequestOrUSVString<D>, init: RootedTraceableBox<RequestInit<D>>, ) -> Result<Root<Dom<<D as DomTypes>::Request>>, Error>;
}

Required Methods§

Source

fn Method(&self) -> ByteString

Source

fn Url(&self) -> USVString

Source

fn Headers(&self, cx: &mut JSContext) -> Root<Dom<<D as DomTypes>::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 Keepalive(&self) -> bool

Source

fn IsReloadNavigation(&self) -> bool

Source

fn IsHistoryNavigation(&self) -> bool

Source

fn Signal(&self) -> Root<Dom<<D as DomTypes>::AbortSignal>>

Source

fn Duplex(&self) -> RequestDuplex

Source

fn Clone( &self, cx: &mut JSContext, ) -> Result<Root<Dom<<D as DomTypes>::Request>>, Error>

Source

fn BodyUsed(&self) -> bool

Source

fn GetBody(&self) -> Option<Root<Dom<<D as DomTypes>::ReadableStream>>>

Source

fn ArrayBuffer( &self, cx: &mut JSContext, ) -> <<D as DomTypes>::Promise as PromiseHelpers<D>>::StackRoot

Source

fn Blob( &self, cx: &mut JSContext, ) -> <<D as DomTypes>::Promise as PromiseHelpers<D>>::StackRoot

Source

fn Bytes( &self, cx: &mut JSContext, ) -> <<D as DomTypes>::Promise as PromiseHelpers<D>>::StackRoot

Source

fn FormData( &self, cx: &mut JSContext, ) -> <<D as DomTypes>::Promise as PromiseHelpers<D>>::StackRoot

Source

fn Json( &self, cx: &mut JSContext, ) -> <<D as DomTypes>::Promise as PromiseHelpers<D>>::StackRoot

Source

fn Text( &self, cx: &mut JSContext, ) -> <<D as DomTypes>::Promise as PromiseHelpers<D>>::StackRoot

Source

fn TextStream( &self, cx: &mut JSContext, ) -> Result<Root<Dom<<D as DomTypes>::ReadableStream>>, Error>

Source

fn Constructor( cx: &mut JSContext, global: &<D as DomTypes>::GlobalScope, proto: Option<Handle<'_, *mut JSObject>>, input: RequestOrUSVString<D>, init: RootedTraceableBox<RequestInit<D>>, ) -> Result<Root<Dom<<D as DomTypes>::Request>>, 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.

Implementors§