icerockdev / moko-network

Network components with codegeneration of rest api for mobile (android & ios) Kotlin Multiplatform development
https://moko.icerock.dev
Apache License 2.0
151 stars 29 forks source link

This API is internal in ktor and should not be used. It could be removed or changed without notice. #164

Closed kramlex closed 2 years ago

kramlex commented 2 years ago

append: with(builder.headers) { append("Accept", "application/json") }

Alex009 commented 2 years ago

https://kotlinlang.slack.com/archives/C0A974TJ9/p1634664170497000?thread_ts=1634658646.491000&cid=C0A974TJ9

Andrey Aksenov 9 hours ago Hi, sorry for the inconvenience. This because the StringValuesBuilder class that exposes the append function is incorrectly marked with the InternalAPI annotation (https://ktor.io/docs/request.html#headers). This should be fixed in v2.0.0.