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

Allow passing multiple acceptable content types to accept route selector #1781

Open
rock3r opened this issue Apr 10, 2020 · 1 comment
Open
Labels

Comments

@rock3r
Copy link

rock3r commented Apr 10, 2020

Subsystem
Server, route building

Is your feature request related to a problem? Please describe.
Right now the accept() route selector only takes a single content type.

Describe the solution you'd like
It would be convenient if we could pass more than one, and it could match on any of the ones provided.

Motivation to include to ktor
That would reduce the amount of duplication when multiple content types are handled by the same handler.

@oleg-larshin
Copy link

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants