Redirect
By default, Ktor HTTP client does follow redirections. This plugin (previously known as feature) allows you to follow Location
redirects in a way that works with any HTTP engine. Its usage is pretty straightforward, and the only configurable property is the maxJumps
(20 by default) that limits how many redirects are tried before giving up (to prevent infinite redirects).
Install
This plugin is installed by default.
Prevent installing
val client = HttpClient(HttpClientEngine) {
followRedirects = false
}
Last modified: 09 September 2021