Skip to content

feat(transport): Unify API for setting service to be via Routes instance#1586

Closed
tottoto wants to merge 1 commit intohyperium:masterfrom
tottoto:transport
Closed

feat(transport): Unify API for setting service to be via Routes instance#1586
tottoto wants to merge 1 commit intohyperium:masterfrom
tottoto:transport

Conversation

@tottoto
Copy link
Collaborator

@tottoto tottoto commented Dec 20, 2023

Motivation

Reduces transport layer's responsibility and makes easier to maintain it.

Solution

Warning

This proposal contains breaking changes.

Unifies API for setting services to be via Routes instance. This pull request removes add_service, add_optional_service API from Server and Router, and refactor Routes and RoutesBuilder allowed by this change. As these APIs seem to increase the complexity rather than the benefit it provides, they could be removed for the purpose of improving the maintainability.

@tottoto tottoto deleted the transport branch June 20, 2025 21:16
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.

2 participants