HttpsRedirect
org.http4s.server.middleware.HttpsRedirect$
object HttpsRedirect
Middleware to redirect http traffic to https. Inspects X-Forwarded-Proto
header and if it is set to http
, redirects to Host
with same URL with https schema; otherwise does nothing. This middleware is useful when a service is deployed behind a load balancer which does not support such redirect feature, e.g. Heroku.
Attributes
- Source
- HttpsRedirect.scala
- Graph
-
- Supertypes
- Self type
-
HttpsRedirect.type
Members list
In this article