10 releases

0.1.10 Jan 30, 2024
0.1.9 Jan 30, 2024
0.1.3 Dec 20, 2023

#53 in #ipv6

Apache-2.0

9KB
101 lines

preq: ipv6 proxyed reqwest

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.as_str();
  // let url = "https://www.baidu.com";
  let r = PROXY.post_form(url, [("q", "I")]).await?;
  tracing::info!("{}", String::from_utf8_lossy(&r));
  // assert_eq!(r, &*IPV6_PROXY_TEST_RESULT);
  aok::OK
}

Dependencies

~6–19MB
~328K SLoC