api

http4k / org.http4k.filter / ClientFilters / FollowRedirects / then

then

fun then(router: RoutingHttpHandler): HttpHandler

This filter requires special treatment for routing handlers.

In general, Filters are applied after routing (i.e. routing information is available to filters). This filter, however, needs to behave like a browser, and for that we apply the filter before the routing.