While Ktor provides migration support in the code itself (by using the @Deprecated
annotation), this document
serves as a reference point for all migrations as of version 1.6.0.
TestApplicationCall.requestHandled
has been deprecated. For proper validation, it is recommended to check the corresponding status, header, or content of the request, depending on the system under test.- Updates to
basic
anddigest
authentication providers, deprecatingsendWithoutRequest
property, and favouringsendWithoutRequest
function. Also,username
andpassword
properties are deprecated in favour ofcredentials
function, which takes as parameterBasicAuthCredentials
orDigestAuthCredentials
data classes. - Application extension functions
uninstallAllFeatures
,uninstall
, anduninstallFeature
have been deprecated. Currently, there are no replacements for these functions. Please consider commenting on your use-cases on the corresponding issue. ApplicationCall.locationOrNull
has been deprecated. Please useApplicationCall.location
.ContentNegotiation
constructor has been deprecated as it will become internal. It should not be explicitly called from the application code. Please consider passing in the necessary configuration options during installation of theContentNegotiation
plugin.ByteChannelSequentialBase.readByteOrder
andByteChannelSequentialBase.writeByOrder
have been deprecated. Please read/write using big endian, and call theByteChannelSequentialBase.reverseByteOrder()
extension function if necessary.AbstractInput
class has been deprecated and will be merged withInput
class as of version 2.0.0.AbstractOutput
class has been deprecated and will be merged withOutput
class as of version 2.0.0.IoBuffer
class has been deprecated. Please useChunkBuffer
instead.