preq

Crates.iopreq
lib.rspreq
version0.1.11
sourcesrc
created_at2023-12-20 09:07:11.274016
updated_at2024-06-13 10:37:41.186477
descriptionipv6 proxyed reqwest
homepagehttps://github.com/i18n-site/rust/tree/main/preq
repositoryhttps://github.com/i18n-site/rust.git
max_upload_size
id1075124
size4,146
(3tieto)

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: 3

cargo fmt