ktorio/ktor

ktor-locations for (multiplatform) clients.

Aperta

#1304 aperta il 28 ago 2019

 (4 commenti) (7 reazioni) (1 assegnatario)Kotlin (1254 fork)batch import
featurehelp wanted

Metriche repository

Star
 (14.408 stelle)
Metriche merge PR
 (Merge medio 24g 16h) (58 PR mergiate in 30 g)

Descrizione

Subsystem Locations

Is your feature request related to a problem? Please describe. When writing a multiplatform frontend (i.e. Android, iOS) using ktor-client, one has to use strings for get() / update() / delete() calls to a (Ktor-based) backend. This is tedious and error-prone and replicates what had to tbe done for the backend.

Describe the solution you'd like ktor-locations is available for clients as well and can be used in multiplatform projects.

Motivation to include to ktor Clients using ktor-client would benefit from using the same type-safe API path types that can be used for backends. This would increase code re-use and allows for easier refactoring.

Guida contributor