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

Add `Config::set_mandatory_base_origin()` to enable this behavior. Useful if the `Config` includes authentication headers or similar.

I'd like to set a flag in Config that forces the resulting Client to *only* use URIs relative to the specified base URI, and never support absolute URIs. This would...

enhancement

https://docs.rs/surf/latest/surf/struct.Url.html#method.parse `parse` returns `ParseError`, but not part of API (part of crate `url`) might be good to re-export or expose it somehow

By default `http-types` includes `cookie-secure` feature and pulls in `cookie`, `aes-gcm`, `aead` and probably other crates. This looks unnecessary when you just want to do some HTTPS GET/POST requests and...

Currently getting ` BadServerCertificate(None)`error when certificate has expired. Is it possible to disable this check?

Automatically set the `Content-Length` header to POST requests. This introduces changes to following functions: * `body_json` * `body_string` * `body_form` * `body_file` * `body_bytes` Resolves: #324 Signed-off-by: Yagiz Degirmenci

On some websites, e.g. http://ceip.org, surf fails with the following error: > invalid header value Firefox, curl and ureq (a blocking Rust client) work fine. 3888 websites out of the...

This allows users of surf to avoid the substantial dependency tree for the "cookie" feature if they don't need it.