pub trait ResponseMethods {
Show 15 methods
fn Type(&self) -> ResponseType;
fn Url(&self) -> USVString;
fn Redirected(&self) -> bool;
fn Status(&self) -> u16;
fn Ok(&self) -> bool;
fn StatusText(&self) -> ByteString;
fn Headers(&self) -> Root<Dom<Headers>>;
fn Clone(&self) -> Result<Root<Dom<Response>>, Error>;
fn BodyUsed(&self) -> bool;
fn GetBody(&self, cx: SafeJSContext) -> Option<NonNull<JSObject>>;
fn ArrayBuffer(&self) -> Rc<Promise>;
fn Blob(&self) -> Rc<Promise>;
fn FormData(&self) -> Rc<Promise>;
fn Json(&self) -> Rc<Promise>;
fn Text(&self) -> Rc<Promise>;
}