``` Filter { next -> { ...
# http4k
d
Copy code
Filter { next ->
                    {
                        if(it.uri.scheme == "http") {
                            Response(Status.SEE_OTHER).header("location", it.uri.scheme("https").toString())
                        } else {
                            next(it)
                        }
                    }
                }