Crates.io | preq |
lib.rs | preq |
version | |
source | src |
created_at | 2023-12-20 09:07:11.274016 |
updated_at | 2024-11-11 05:45:51.275253 |
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 |
Cargo.toml error: | TOML parse error at line 17, column 1 | 17 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
genv::s!(IPV6_PROXY_TEST_URL, IPV6_PROXY_TEST_RESULT);
use aok::{Result, OK};
#[tokio::test]
async fn test() -> 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);
OK
}