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

The compilation conditions for wasm [in http-client](https://github.com/http-rs/http-client/blob/main/src/lib.rs#L25) and [in surf](https://github.com/http-rs/surf/blob/cd3ba3ed4d24b168a62132862665c987ed00f37f/src/client.rs#L14) are currently different. This difference causes surf to sometimes (usually when running `cargo check`) try to re-export a module that...

Hi there, I was wondering about the maintenance status of this crate? There seems to be little activity. As a rustls maintainer, I noticed this is one of the most...

When building a request, if one provides a invalid url, e.g., `http://foo.bar:---`, the lib panics. I would expect that the parsing error would be returned at some point. In my...

The 0.20 upgrade of it would have been much more substantial with quite a few breaking changes, so this is not included.

So this might be a very small change but I was confused how to use the previous version of this example. This change makes the example plug and play and...

When try to run request for wasm through surf ( code snippet below) and I am getting "clearTimeout' called on an object that does not implement interface Window" I suspect...

help wanted

The current implementation of [http-types::Response::new](https://github.com/http-rs/http-types/blob/main/src/response.rs#L62) will panic on non-standard error codes such as the 52x ones returned by [Cloudflare](https://support.cloudflare.com/hc/en-us/articles/115003011431-Troubleshooting-Cloudflare-5XX-errors). It looks like instead of returning an `Ok(Response::new(res.into()))`, the [send](https://github.com/http-rs/surf/blob/main/src/client.rs#L224) function...

It's the same situation with this issue: https://github.com/dtolnay/thiserror/issues/118 When I use Surf with thiserror like that: ```rust #[error("SurfError")] SurfError(#[from] surf::Error), ``` I got issue: ```sh error[E0599]: the method `as_dyn_error` exists...

(I'm happy if you choose to mark this as a duplicate - my main goal is to increase the googlability of this aspect of the current code). A workaround (I...

## Repro 1. `cargo new surf-wasm-test --lib` 2. edit "Cargo.toml" - `crate-type = [ "cdylib" ]` in `[lib]` - `surf = { version = "2.3.2", fefault-features = false, features =...