After migrating to Ktor 1.6.2, it appears that `St...
# ktor
c
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
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
Which 1.0.0? I did not get that warning in 1.6.1.