- And there you hit the limit of my knowlege of ktor. When i’m using annotated location, we are statically certain from compile time that the URL will remain the same, while in my example you could change it. Is that what concerns you?
- I’m not entirely sure what your bind method does. I bind my class to a given URL, and after that i can request an URL given an instance of MyType? That would be nice. Then at startup i could bind all location types from main, and the rest of the system would still not need to know about ktor
- You say easy to do like in the current version, or as in a future version of ktor?
- Also what do you mean be parent/child instances of location?