surf icon indicating copy to clipboard operation
surf copied to clipboard

HTTP version configurable.

Open wess opened this issue 5 years ago • 2 comments

Im trying to use Surf to work with the GitHub API and they aren't accepting HTTP version 2. So I would like to be able to set the http version to 1.1x

wess avatar Nov 16 '20 19:11 wess

This seems like a reasonable feature request :thumbsup:

In the short term, try using the async-h1 backend, which only supports http/1.1

jbr avatar Nov 16 '20 21:11 jbr

2.3.0+ has surf::Config, so if our backends support this you should be able to add support for it. This would probably have to be done in the underlying http-client crate: https://github.com/http-rs/http-client

Fishrock123 avatar Aug 23 '21 23:08 Fishrock123