preq

Crates.iopreq
lib.rspreq
version0.1.18
created_at2023-12-20 09:07:11.274016+00
updated_at2025-08-14 04:43:00.97456+00
descriptionipv6 proxyed reqwest
homepagehttps://github.com/i18n-site/rust/tree/main/preq
repositoryhttps://github.com/i18n-site/rust.git
max_upload_size
id1075124
size59,025
i18n.site (i18nsite)

documentation

README

preq: ipv6 proxyed reqwest

// genv::s!(IPV6_PROXY_TEST_URL, IPV6_PROXY_TEST_RESULT);
use aok::{OK, Result};

#[tokio::test]
async fn test() -> Result<()> {
  loginit::init();
  use preq::PROXY;
  // let url = IPV6_PROXY_TEST_URL.as_str();
  let url = "https://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);
  OK
}
Commit count: 68

cargo fmt