Plack::Middleware::Proxy::AddVia - Adds the Via header for the current host.
use Plack::Builder; use Plack::App::Proxy; builder { enable "Proxy::AddVia"; Plack::App::Proxy->new(host => "http://10.0.1.2:8080/")->to_app; };
Plack::Middleware::Proxy::AddVia adds the Via header to the request and response, like mod_proxy's ProxyVia option.
Via
ProxyVia
Masahiro Honma <hiratara@cpan.org>
Plack::App::Proxy
To install Plack::App::Proxy, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Plack::App::Proxy
CPAN shell
perl -MCPAN -e shell install Plack::App::Proxy
For more information on module installation, please visit the detailed CPAN module installation guide.