Skip to content

docs(examples): alias Builder for clarity #3873

New issue

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

Merged
merged 1 commit into from
Apr 7, 2025

Conversation

Muffeter
Copy link
Contributor

@Muffeter Muffeter commented Apr 7, 2025

type ClientBuilder = hyper::client::conn::http1::Builder;
type ServerBuilder = hyper::server::conn::http1::Builder;

This pull request includes changes to the examples/http_proxy.rs file to improve code readability and maintainability by introducing type aliases for the hyper::client::conn::http1::Builder and hyper::server::conn::http1::Builder types.

Code readability and maintainability improvements:

Copy link
Member

@seanmonstar seanmonstar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice improvement, thanks for taking the time!

@seanmonstar seanmonstar merged commit ea5b49b into hyperium:master Apr 7, 2025
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants