Skip to content

docs(examples): alias Builder for clarity#3873

Merged
seanmonstar merged 1 commit into
hyperium:masterfrom
Muffeter:master
Apr 7, 2025
Merged

docs(examples): alias Builder for clarity#3873
seanmonstar merged 1 commit into
hyperium:masterfrom
Muffeter:master

Conversation

@Muffeter

@Muffeter Muffeter commented Apr 7, 2025

Copy link
Copy Markdown
Contributor
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:

@seanmonstar seanmonstar left a comment

Copy link
Copy Markdown
Member

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants