surf icon indicating copy to clipboard operation
surf copied to clipboard

Fast and friendly HTTP client framework for async Rust

Results 102 surf issues
Sort by recently updated
recently updated
newest added

As it stands, `Client`, `Client` and friends are not nameable by consumers of the crate, which causes issues if the user wants to put a client in a struct. Additionally,...

Not sure if this is something that people want. Currently I have the need to access the URL of a response object. I basically just wrapped a custom struct on...

the isahc client seems to hang indefinitely when speaking to an async-h1 based server when there is a request body

Using `unix` schemas on the server is pretty common so it would be great to add this feature.

Example: ```rust async fn fetch(url: String, sender: Sender) -> anyhow::Result { let body = surf::get(&url).recv_string().await?; sender.send(body).await; Ok(()) } ``` Error: ```rust | 9 | let body = surf::get(&url).recv_string().await?; | ^...

## Description Returning `Request` type is a bit complex right now. It takes a bit of work to figure out what to do to achieve this. ## Why Being able...

I tried surf/examples/hello_world.rs,and found it toke at least 1 second. https://httpbin.org/get ● sending request /home/xxx/.cargo/registry/src/github.com-1ecc6299db9ec823/surf-1.0.3/src/middleware/logger/native.rs:119 › req.id: 0 › req.method: "GET" › req.uri: "https://httpbin.org/get" ● request completed /home/xxx/.cargo/registry/src/github.com-1ecc6299db9ec823/surf-1.0.3/src/middleware/logger/native.rs:119 › req.id:...

```Rust [2020-03-20T12:06:44Z INFO scrape_headers] Visit Headers from 'https://wordpress.org' [2020-03-20T12:06:44Z DEBUG isahc::agent] agent waker listening on 127.0.0.1:55110 [2020-03-20T12:06:44Z DEBUG isahc::agent] agent took 1.103154ms to start up [2020-03-20T12:06:44Z INFO surf::middleware::logger::native] sending request...

bug

Using ```toml surf = { version = "1.0.1", features = ["hyper-client"], default-features = false } ``` I get the following compile error: ``` Compiling surf v1.0.1 error[E0432]: unresolved import `hyper_tls`...

```rust use surf::http::StatusCode; use surf::Response; use serde::{Deserialize, Serialize}; pub(crate) struct FreshAccount { ig_sig_key_version: &'a str, signed_body: &'a str } pub(crate) async fn login(fresh: FreshAccount

bug