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

Paul Woitaschek

09/06/2021, 8:12 PM
We are using the ktor
URLBuilder
to create urls in a type safe way. However suddenly lots of warnings popped up that the whole parameters api is marked as internal. (ParametersBuilder is public) but functions like
append
belong to
StringValuesBuilder
and are marked as
InternalAPI
. Is there really no public api to create an url with parameters?
☝🏾 1
☝🏼 2
e

edenman

09/06/2021, 8:23 PM
I just hit this yesterday. Super annoying
h

hfhbd

09/06/2021, 8:33 PM
The annotation InternalAPI will be removed in 2.0.0.
a

Aleksei Tirman [JB]

09/07/2021, 8:52 AM
To get rid of the warning before 2.0.0 use
@OptIn(InternalAPI::class)
annotation.
13 Views