/// Access this request's body as plaintext.
Access this request's body as plaintext.
Access this request ' s body as plaintext .
pub async fn text(&mut self) -> Result<String> {
        if !self.body_used {
            self.body_used = true;
            return JsFuture::from(self.edge_request.text()?)
                .await
                .map(|val| val.as_string().unwrap())
                .map_err(|e| {
                    Error::JsError(
                        e.as_string()
                            .unwrap_or_else(|| "failed to get text for body value".into()),
                    )
                });
        }
        Err(Error::BodyUsed)
    }
pub async fn text ( & mut self ) -> Result < String > { if ! self . body_used { self . body_used = true ; return JsFuture :: from ( self . edge_request . text ( ) ? ) . await . map ( | val | val . as_string ( ) . unwrap ( ) ) . map_err ( | e | { Error :: JsError ( e . as_string ( ) . unwrap_or_else ( | | " " . into ( ) ) , ) } ) ; } Err ( Error :: BodyUsed ) }
Access this request's body as plaintext.
Access this request ' s body as plaintext .
&mut self