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

:wave: I'm looking to use surf to communicate with a unix domain socket (and maybe a windows named pipe someday but not anytime soon). I figured this would work "out...

enhancement

I currently have an `http::header::HeaderMap` that I want to use with my surf request, but I'm having a lot of trouble getting this to work. I tried a few approaches,...

When I tried surf for make get request on `https://static.crates.io/crates/{crate}/{crate}-{version}.crate` for example I get CloudFront responding 501 Not Yet Implemented, "The request could not be satisfied". Cloudfront is not the...

# Problem If I run a web server with a self signed certificate, I can ignore self-signed certificate validation with `--insecure/-k` option of `curl` command e.g. `curl -k https://localhost:3031`. Surf...

This would make testing anything using a REST API simpler as one could just mock out the responses. [`yup_hyper_mock`](https://github.com/Byron/yup-hyper-mock) lets you create a mock `Connector` implementation that responds to various...

I was talking to @davidbarsky today, and something that would be great to document is how to build an SDK fronted by some sort of login function. This should probably...

documentation

Using https://docs.rs/async-compression/0.1.0-alpha.1/async_compression/ we should write a middleware that sends `Accept-Encoding` parameters to the server, and decompresses the response. ## Examples - https://github.com/rustasync/tide/blob/master/tide-compression/src/lib.rs

enhancement

#25 introduces a minimal WASM backend for Surf. In order to make it production ready, we should: - [x] support different methods on request - [ ] support body uploads...

enhancement

As per @fairingrey's suggestion, we should probably follow up on https://github.com/rustasync/http-service/issues/31 and use [`AsyncBufRead`](https://docs.rs/futures-preview/0.3.0-alpha.17/futures/io/trait.AsyncBufRead.html) to prevent double buffering.

enhancement

I'm trying to make a GET request where the response is a (slow) continuous stream. However, the response reading results to a core dump. ``` async fn connect_to_server(&mut self) ->...

bug