We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
All (or many) examples in this page are wrong, at least I think: https://docs.rs/hyper-util/latest/hyper_util/client/legacy/struct.Client.html.
E.g.:
let client = Client::new();
new() doesn't exist anymore (and I don't know what to use).
new()
The text was updated successfully, but these errors were encountered:
The docs should be fixed by hyperium/hyper-util#65, but the changes haven't been reflected yet.
Basically, you need to do something like:
let client: Client<_, Full<Bytes>> = Client::builder(TokioExecutor::new()).build_http();
Sorry, something went wrong.
No branches or pull requests
All (or many) examples in this page are wrong, at least I think: https://docs.rs/hyper-util/latest/hyper_util/client/legacy/struct.Client.html.
E.g.:
new()
doesn't exist anymore (and I don't know what to use).The text was updated successfully, but these errors were encountered: