DOKK / manpages / debian 12 / libplack-app-proxy-perl / Plack::Middleware::Proxy::AddVia.3pm.en
Plack::Middleware::Proxy::AddVia(3pm) User Contributed Perl Documentation Plack::Middleware::Proxy::AddVia(3pm)

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.

Masahiro Honma <hiratara@cpan.org>

Plack::App::Proxy

2021-01-09 perl v5.32.0