Skip to content

Conversation

@cratelyn
Copy link
Member

@cratelyn cratelyn commented Mar 3, 2025

this commit removes some misdirection from the various constructors for our test server.

currently, we expose a family of constructor functions server::new(), server::http1(), ..., and so forth.

each of these invoke a private server::Server::http1(), server::Server::http2(), server::Server::http2_tls(), ..., counterpart, which then delegates down once more to another private constructor server::Server::new().

this is all a bit roundabout, particularly because these private constructors are not used by any other internal code in the server submodule.

this commit removes these inherent Server constructors, since they are private and not used by any test code. each free-standing constructor function is altered to instead directly construct a Server.

NB: based upon #3692.

@cratelyn cratelyn marked this pull request as ready for review March 3, 2025 23:02
@cratelyn cratelyn requested a review from a team as a code owner March 3, 2025 23:02
@cratelyn cratelyn force-pushed the kate/app-integration-request-response-aliases branch from 7673273 to 349d188 Compare March 3, 2025 23:41
Base automatically changed from kate/app-integration-request-response-aliases to main March 3, 2025 23:46
this commit removes some misdirection from the various constructors for
our test server.

currently, we expose a family of constructor functions `server::new()`,
`server::http1()`, ..., and so forth.

each of these invoke a private `server::Server::http1()`,
`server::Server::http2()`, `server::Server::http2_tls()`, ...,
counterpart, which then delegates down once more to another private
constructor `server::Server::new()`.

this is all a bit roundabout, particularly because these private
constructors are not used by any other internal code in the `server`
submodule.

this commit removes these inherent `Server` constructors, since they are
private and not used by any test code. each free-standing constructor
function is altered to instead directly construct a `Server`.

Signed-off-by: katelyn martin <[email protected]>
@cratelyn cratelyn force-pushed the kate/app-integration-server-constructors branch from 26772e0 to bb39c31 Compare March 4, 2025 00:36
@cratelyn
Copy link
Member Author

cratelyn commented Mar 4, 2025

rebased upon main, now that #3690 and #3692 have landed.

@cratelyn cratelyn enabled auto-merge (squash) March 4, 2025 00:38
@cratelyn cratelyn merged commit 4e3119c into main Mar 4, 2025
15 checks passed
@cratelyn cratelyn deleted the kate/app-integration-server-constructors branch March 4, 2025 00:42
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.

3 participants