HttpsRedirect

org.http4s.server.middleware.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
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Value members

Concrete methods

def apply[F[_], G[_]](http: Http[F, G])(implicit F: Applicative[F]): Http[F, G]

Attributes

Source:
HttpsRedirect.scala
def httpApp[F[_] : Applicative](httpApp: HttpApp[F]): HttpApp[F]

Attributes

Source:
HttpsRedirect.scala
def httpRoutes[F[_] : Monad](httpRoutes: HttpRoutes[F]): HttpRoutes[F]

Attributes

Source:
HttpsRedirect.scala