async fn http_get(path: &str, xnet_endpoint: &XNetEndpoint) -> Bytes {
    let url = format!("http://localhost:{}{}", xnet_endpoint.server_port(), path);
    let url = reqwest::Url::parse(&url).unwrap_or_else(|_| panic!("Could not parse URL: {}", url));

    reqwest::get(url)
        .await
        .expect("couldn't execute a GET request")
        .bytes()
        .await
        .expect("couldn't extract bytes from an HTTP response")
}
/// Queries the given path on a running `XNetEndpoint`.
Queries the given path on a running `XNetEndpoint`.
Queries the given path on a running ` XNetEndpoint ` .
async fn http_get(path: &str, xnet_endpoint: &XNetEndpoint) -> Bytes {
    let url = format!("http://localhost:{}{}", xnet_endpoint.server_port(), path);
    let url = reqwest::Url::parse(&url).unwrap_or_else(|_| panic!("Could not parse URL: {}", url));
    reqwest::get(url)
        .await
        .expect("couldn't execute a GET request")
        .bytes()
        .await
        .expect("couldn't extract bytes from an HTTP response")
}
async fn http_get ( path : & str , xnet_endpoint : & XNetEndpoint ) -> Bytes { let url = format ! ( " " xnet_endpoint server_port ( ) path ) ; let url = reqwest :: Url :: parse ( & url ) . unwrap_or_else ( | _ | panic ! ( " " url ) ) ; reqwest :: get ( url ) . await . expect ( " " ) . bytes ( ) . await . expect ( " " ) }
Queries the given path on a running `XNetEndpoint`.
Queries the given path on a running ` XNetEndpoint ` .
path
&str
xnet_endpoint
&XNetEndpoint
path
&str
xnet_endpoint
&XNetEndpoint