https://kotlinlang.org logo
#ktor
Title
# ktor
v

v

04/30/2018, 7:23 AM
I'm using Locations with a form,
method=get
. I can't create the URL with
locations.href
because I don't have the
GET
parameters, they're filled in by the form. Is there a better way of doing this, or is it just an edge case and I'm better leaving it as a hard-coded string?
s

spand

04/30/2018, 7:28 AM
You could extract the path from the location class and use that
v

v

04/30/2018, 7:34 AM
By reflection into the annotation?
s

spand

04/30/2018, 7:57 AM
yes
2 Views