Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reqwest
improvements: upgrade to version 0.12, disable default feat…
…ures, support TLS control * Update dependencies in Cargo.toml to disable default features for reqwest and add new feature flags for OpenSSL and Rustls. This enhances control over the used TLS implementation. * Upgrade reqwest dependency to version 0.12 - fix tests - update test assertions for IP details to reflect new expected values for city, region, location, postal code, and timezone. * Update Cargo.toml adding these ``` default = ["default-tls"] default-tls = ["reqwest/default-tls"] native-tls = ["reqwest/native-tls"] rustls-tls = ["reqwest/rustls-tls"] ``` as suggested by @max-ipinfo in #60 (comment) * Refactor HTTP request formatting in IpInfo implementation - Fixes `the borrowed expression implements the required traits` - Changed string formatting from `format!` to direct string interpolation for POST and GET requests in `ipinfo.rs`. - This improves readability and maintains consistency in the codebase.
- Loading branch information