pub async fn delete(&self, path: &str) -> Response<Body> {
        let req = self.populate_headers(Request::builder());
        self.app
            .dispatch(
                req.method(Method::DELETE)
                    .uri(path)
                    .body(Body::default())
                    .unwrap(),
            )
            .await
            .unwrap()
    }
/// Perform a DELETE request against the path.
Perform a DELETE request against the path.
Perform a DELETE request against the path .
pub async fn delete(&self, path: &str) -> Response<Body> {
        let req = self.populate_headers(Request::builder());
        self.app
            .dispatch(
                req.method(Method::DELETE)
                    .uri(path)
                    .body(Body::default())
                    .unwrap(),
            )
            .await
            .unwrap()
    }
pub async fn delete ( & self , path : & str ) -> Response < Body > { let req = self . populate_headers ( Request :: builder ( ) ) ; self . app . dispatch ( req . method ( Method :: DELETE ) . uri ( path ) . body ( Body :: default ( ) ) . unwrap ( ) , ) . await . unwrap ( ) }
Perform a DELETE request against the path.
Perform a DELETE request against the path .
&self
path
&str
&self
path
&str