https://ktor.io/servers/features/locations.html#parameters-get here it mentions that additional parameters are retrieved from get or post parameters.. i guess that means that i can use forms with post action? is there any specific encoding type i have to use for this ?
i tried this and it always says that the post request is unhandled
s
spand
02/25/2020, 8:47 AM
I think they just mean you can call resolve with
Parameters
you have loaded with
call.receive<Parameters>()
spand
02/25/2020, 8:47 AM
Afaik routing based on post parameters was removed prior to 1.0
n
Nikky
02/25/2020, 8:50 AM
so this refers to parameters only and not to the post-body ?
s
spand
02/25/2020, 8:57 AM
Yes I believe the docs are outdated (ie. only get/query parameters are used) but maybe someone from the team can verify
c
cy
02/25/2020, 1:35 PM
Right, it was removed because it is not possible to make a href to such location and this is why it is error-prone.