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.requestHandledhas 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
basicanddigestauthentication providers, deprecatingsendWithoutRequestproperty, and favouringsendWithoutRequestfunction. Also,usernameandpasswordproperties are deprecated in favour ofcredentialsfunction, which takes as parameterBasicAuthCredentialsorDigestAuthCredentialsdata classes. - Application extension functions
uninstallAllFeatures,uninstall, anduninstallFeaturehave been deprecated. Currently, there are no replacements for these functions. Please consider commenting on your use-cases on the corresponding issue. ApplicationCall.locationOrNullhas been deprecated. Please useApplicationCall.location.ContentNegotiationconstructor 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 theContentNegotiationplugin.ByteChannelSequentialBase.readByteOrderandByteChannelSequentialBase.writeByOrderhave been deprecated. Please read/write using big endian, and call theByteChannelSequentialBase.reverseByteOrder()extension function if necessary.AbstractInputclass has been deprecated and will be merged withInputclass as of version 2.0.0.AbstractOutputclass has been deprecated and will be merged withOutputclass as of version 2.0.0.IoBufferclass has been deprecated. Please useChunkBufferinstead.