13 releases

0.1.13 Aug 17, 2024
0.1.12 Aug 10, 2024
0.1.11 Jun 13, 2024
0.1.10 Jan 30, 2024
0.1.3 Dec 20, 2023

#69 in #ipv6

MulanPSL-2.0

16KB
209 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–17MB
~249K SLoC