Registry / http-client / surf
library2.3.2rscratesunverified

HTTP client framework for Rust, providing a simple and extensible interface for making HTTP requests.

# Cargo.toml [dependencies] surf = "2.3.2"
INSTALL
IMPORT
SIG · SURF
S
surf
http-clientrustv2.3.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Client
✓ use surf::Client;

Make a GET request using the Surf HTTP client.

use surf::Client; let client = Client::new(); let mut response = client.get("https://example.com").await.unwrap(); println!("Status: {}", response.status());
Debug
Known issues
gotchaSurf requires an async runtime (e.g., tokio or async-std) to execute requests.
fix
Add a runtime dependency and use `#[tokio::main]` or `#[async_std::main]`.
affects: >=2.0.0
Upgrade
Version history
2.3.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
27 hits · last 30 days
node
20
Amazon
2
Resources
surf — cargo add surf · libregistry