martenframework / marten

The pragmatic web framework.
https://martenframework.com
MIT License
424 stars 24 forks source link

Add middleware to redirect to HTTPS #84

Closed ellmetha closed 1 year ago

ellmetha commented 1 year ago

Description

Some deployment strategies don't allow to easily configure an automatic HTTP -> HTTPS redirect. In order to palliate this, let's introduce a built-in Middleware::SSLRedirect middleware allowing to perform this redirection at the application level.