preq: ipv6 proxyed reqwest
!;
async
/*
#[cfg(feature = "macro")]
mod test_macro {
}
*/
s
genv::s!(IPV6_PROXY_TEST_URL, IPV6_PROXY_TEST_RESULT);
#[tokio::test]
async fn test() -> aok::Result<()> {
loginit::init();
use preq::PROXY;
let url = &*IPV6_PROXY_TEST_URL;
// let url = "https://www.baidu.com";
let r = PROXY.read().post_form(url, [("q", "I")]).await?;
let r = r.text().await?;
tracing::info!("{}", r);
assert_eq!(r, *IPV6_PROXY_TEST_RESULT);
aok::OK
}
/*
#[cfg(feature = "macro")]
mod test_macro {
}
*/