pub trait RequestMethods<D: DomTypes> {
Show 20 methods // Required methods fn Method(&self) -> ByteString; fn Url(&self) -> USVString; fn Headers(&self, _can_gc: CanGc) -> Root<Dom<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) -> Result<Root<Dom<Request>>, Error>; fn BodyUsed(&self) -> bool; fn GetBody(&self, cx: SafeJSContext) -> Option<NonNull<JSObject>>; fn ArrayBuffer(&self, _can_gc: CanGc) -> Rc<Promise>; fn Blob(&self, _can_gc: CanGc) -> Rc<Promise>; fn FormData(&self, _can_gc: CanGc) -> Rc<Promise>; fn Json(&self, _can_gc: CanGc) -> Rc<Promise>; fn Text(&self, _can_gc: CanGc) -> Rc<Promise>; fn Constructor( global: &GlobalScope, proto: Option<HandleObject<'_>>, can_gc: CanGc, input: RequestOrUSVString, init: RootedTraceableBox<RequestInit>, ) -> Result<Root<Dom<Request>>, Error>;
}

Required Methods§

source

fn Method(&self) -> ByteString

source

fn Url(&self) -> USVString

source

fn Headers(&self, _can_gc: CanGc) -> Root<Dom<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) -> Result<Root<Dom<Request>>, Error>

source

fn BodyUsed(&self) -> bool

source

fn GetBody(&self, cx: SafeJSContext) -> Option<NonNull<JSObject>>

source

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

source

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

source

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

source

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

source

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

source

fn Constructor( global: &GlobalScope, proto: Option<HandleObject<'_>>, can_gc: CanGc, input: RequestOrUSVString, init: RootedTraceableBox<RequestInit>, ) -> Result<Root<Dom<Request>>, Error>

Object Safety§

This trait is not object safe.

Implementors§