Skip to content
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

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

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.

1 participant