attohttpc
attohttpc copied to clipboard
Rust lightweight HTTP 1.1 client
I am trying to implement Body: https://docs.rs/attohttpc/latest/attohttpc/body/trait.Body.html by chance, I happen to have a type that already implements `write`: https://docs.rs/sj/latest/sj/enum.Value.html#method.write so I just need `kind`. I tried this: ~~~rust use...
* [x] Cookie Jar * [ ] Tests * [ ] Add cookies on request * [ ] Tests
`std::sync::OnceLock` can be used instead of `lazy_static` crate.
Example: ```rust let query = json!({"page": 8, "order": "asc", "details": false}); attohttpc::get("http://foo.bar").query(&query)?; ``` This is equivalent to *reqwest*'s [query method](https://docs.rs/reqwest/latest/reqwest/blocking/struct.RequestBuilder.html#method.query). (Unfortunately, we can't use `.params(query.as_object()?)` here, because the `ToString` implementation...
Updates the requirements on [tokio-rustls](https://github.com/rustls/tokio-rustls) to permit the latest version. Updates `tokio-rustls` to 0.26.0 Release notes Sourced from tokio-rustls's releases. v/0.26.0 Additions Support for Rustls 0.23 and the new acceptor...
Updates the requirements on [hyper](https://github.com/hyperium/hyper) to permit the latest version. Release notes Sourced from hyper's releases. v1.2.0 Features http1: support configurable max_headers(num) to client and server (#3523) (b1142448) http2: add...
This is like a RFC rather than a proposal. Uses `http::Response` type to describe a response type instead of defining an own type. When users are familiar with `http` crate...
Hi I was wondering if there is a built-in way to compute and set value of the `Content-length` header for a `multipart/form-data` request. I was looking at the implementation and...
Hey there, great job on this library, thanks for all your hard work! 😄 I was wondering why the `bearer_auth` function uses `token: impl Into`. This would potentially result in...