ktorio / ktor

Framework for quickly creating connected applications in Kotlin with minimal effort
https://ktor.io
Apache License 2.0
12.86k stars 1.04k forks source link

KTOR-7084 Access the body in RouteSelector #4069

Closed hfhbd closed 1 month ago

hfhbd commented 3 months ago

Subsystem Server, core

Motivation It's not possible to access the body/call another suspend function in RouteSelector.evaluate

Solution Make evaluate suspending

e5l commented 1 month ago

Hey @hfhbd, thanks for the PR, and sorry for the delay. The motivation and fix are clear to me. Could you check the build? The compilation is failing on several platforms

hfhbd commented 1 month ago

Hey @e5l sure, will do it today.

BTW I also plan to update several other PRs today/next days.

e5l commented 1 month ago

Awesome! We're about to make the rc-1 release after fixing some issues, so it's the best time to merge stuff. I will keep an eye on PRs, feel free to ping me if you need any help or review