pub async fn form_data(&mut self) -> Result<FormData> {
        if !self.body_used {
            self.body_used = true;
            return JsFuture::from(self.edge_request.form_data()?)
                .await
                .map(|val| val.into())
                .map_err(|e| {
                    Error::JsError(
                        e.as_string()
                            .unwrap_or_else(|| "failed to get form data from request".into()),
                    )
                });
        }

        Err(Error::BodyUsed)
    }
/// Access this request's body as a form-encoded payload and pull out fields and files.
Access this request's body as a form-encoded payload and pull out fields and files.
Access this request ' s body as a form - encoded payload and pull out fields and files .
pub async fn form_data(&mut self) -> Result<FormData> {
        if !self.body_used {
            self.body_used = true;
            return JsFuture::from(self.edge_request.form_data()?)
                .await
                .map(|val| val.into())
                .map_err(|e| {
                    Error::JsError(
                        e.as_string()
                            .unwrap_or_else(|| "failed to get form data from request".into()),
                    )
                });
        }
        Err(Error::BodyUsed)
    }
pub async fn form_data ( & mut self ) -> Result < FormData > { if ! self . body_used { self . body_used = true ; return JsFuture :: from ( self . edge_request . form_data ( ) ? ) . await . map ( | val | val . into ( ) ) . map_err ( | e | { Error :: JsError ( e . as_string ( ) . unwrap_or_else ( | | " " . into ( ) ) , ) } ) ; } Err ( Error :: BodyUsed ) }
Access this request's body as a form-encoded payload and pull out fields and files.
Access this request ' s body as a form - encoded payload and pull out fields and files .
&mut self
&mut self