preq

Crates.iopreq
lib.rspreq
version0.1.13
sourcesrc
created_at2023-12-20 09:07:11.274016
updated_at2024-08-17 12:25:00.201697
descriptionipv6 proxyed reqwest
homepagehttps://github.com/i18n-site/rust/tree/main/preq
repositoryhttps://github.com/i18n-site/rust.git
max_upload_size
id1075124
size4,110
i18n.site (i18nsite)

documentation

README

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
}
Commit count: 21

cargo fmt