Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

a streaming capable proxy for Plack

branch: always-ae

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 t
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Changes
Octocat-spinner-32 MANIFEST.SKIP
Octocat-spinner-32 Makefile.PL
Octocat-spinner-32 README
README
NAME
    Plack::App::Proxy - proxy requests

SYNOPSIS
      use Plack::Builder;
 
      builder {
          # proxy all requests to 127.0.0.1:80
          mount "/static" => Plack::App::Proxy->new(host => "127.0.0.1:80")->to_app;
      
          # use some logic to decide which host to proxy to
          mount "/host" => Plack::App::Proxy->new(host => sub {
            my $env = shift;
            ...
            return $host;
          })->to_app;
      
          # use some logic to decide what url to proxy
          mount "/url" => Plack::App::Proxy->new(url => sub {
            my $env => shift;
            ...
            return $url;
          })->to_app;
      };

DESCRIPTION
    Plack::App::Proxy

AUTHOR
    Lee Aylward

LICENSE
    This library is free software; you can redistribute it and/or modify it
    under the same terms as Perl itself.

SEE ALSO
    Plack::Builder

Something went wrong with that request. Please try again.