Crates.io | preq |
lib.rs | preq |
version | 0.1.13 |
source | src |
created_at | 2023-12-20 09:07:11.274016 |
updated_at | 2024-08-17 12:25:00.201697 |
description | ipv6 proxyed reqwest |
homepage | https://github.com/i18n-site/rust/tree/main/preq |
repository | https://github.com/i18n-site/rust.git |
max_upload_size | |
id | 1075124 |
size | 4,110 |
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
}