Αριστοτέλης Παγκαλτζής > Plack-Middleware-RedirectSSL > Plack::Middleware::RedirectSSL

Download:
Plack-Middleware-RedirectSSL-1.101.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 1.101   Source  

NAME ^

Plack::Middleware::RedirectSSL - force all requests to use in-/secure connections

VERSION ^

version 1.101

SYNOPSIS ^

 # in app.psgi
 use Plack::Builder;
 
 builder {
     enable 'RedirectSSL';
     $app;
 };

DESCRIPTION ^

This middleware intercepts requests using either the http or https scheme and redirects them to the same URI under respective other scheme.

CONFIGURATION OPTIONS ^

ssl

Specifies the direction of redirects. If true or not specified, requests using http will be redirected to https. If false, requests using https will be redirected to plain http.

hsts

Specifies the max-age value for the Strict-Transport-Security header. (Cf. RFC 6797, HTTP Strict Transport Security.) If not specified, it defaults to 6 weeks. If 0, no Strict-Transport-Security header will be sent.

AUTHOR ^

Aristotle Pagaltzis <pagaltzis@gmx.de>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2014 by Aristotle Pagaltzis.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: