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

Add ServerBuilder.coroutinService as Kotlin extension method #5671

Open
minwoox opened this issue May 9, 2024 · 0 comments
Open

Add ServerBuilder.coroutinService as Kotlin extension method #5671

minwoox opened this issue May 9, 2024 · 0 comments

Comments

@minwoox
Copy link
Member

minwoox commented May 9, 2024

CoroutineHttpService was introduced in #5603.
However, adding the service to a ServerBuilder using lambda requires an explicit type declaration, which can be cumbersome for users.
If we provide the coroutineService method, users will easily add a CoroutineHttpService using lambda.

Server
  .builder()
  .coroutineService("/path", myCoroutineService)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant