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

CLOVIS

08/25/2021, 2:01 PM
After migrating to Ktor 1.6.2, it appears that
StringValuesBuilder.append
has been marked as internal. However, it is necessary to create multipart requests:
Copy code
builder.append(FormPart(name, data, Headers.build {
	append(HttpHeaders.ContentType, mime) // this is now marked as internal
}))
I didn't see anything explaining how we should migrate our code.
a

Aleksei Tirman [JB]

08/25/2021, 6:57 PM
This
InternalAPI
annotation appears in version 1.0.0. You can either annotate your code with
@OptIn(InternalAPI::class)
or wait for version 2.0.0 where this annotation is absent.
c

CLOVIS

08/25/2021, 8:14 PM
Which 1.0.0? I did not get that warning in 1.6.1.
3 Views