Trait script::dom::bindings::codegen::Bindings::RequestBinding::Request_Binding::RequestMethods
source · 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§
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>
Object Safety§
This trait is not object safe.