diff options
author | Jesse Luehrs <doy@tozt.net> | 2011-01-11 13:44:02 -0600 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2011-01-11 13:44:02 -0600 |
commit | 76937d647b5056c564043d15540d6c9e652645b4 (patch) | |
tree | c5e1406828163803a554e2f34ab70ec0e600098c | |
parent | 171cd980469033a9a049ae34753959c95f973072 (diff) | |
download | plack-client-76937d647b5056c564043d15540d6c9e652645b4.tar.gz plack-client-76937d647b5056c564043d15540d6c9e652645b4.zip |
make the proxy object and apps hashref private
-rw-r--r-- | lib/Plack/Client/Backend/http.pm | 4 | ||||
-rw-r--r-- | lib/Plack/Client/Backend/psgi_local.pm | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/Plack/Client/Backend/http.pm b/lib/Plack/Client/Backend/http.pm index b8ca428..f57ee1f 100644 --- a/lib/Plack/Client/Backend/http.pm +++ b/lib/Plack/Client/Backend/http.pm @@ -13,7 +13,7 @@ sub new { }, $class; } -sub proxy { shift->{proxy} } +sub _proxy { shift->{proxy} } sub app_from_request { my $self = shift; @@ -22,7 +22,7 @@ sub app_from_request { my $uri = $req->uri->clone; $uri->path('/'); $req->env->{'plack.proxy.remote'} = $uri->as_string; - return $self->proxy; + return $self->_proxy; } 1; diff --git a/lib/Plack/Client/Backend/psgi_local.pm b/lib/Plack/Client/Backend/psgi_local.pm index 5b9eb4d..0131d02 100644 --- a/lib/Plack/Client/Backend/psgi_local.pm +++ b/lib/Plack/Client/Backend/psgi_local.pm @@ -17,12 +17,12 @@ sub new { }, $class; } -sub apps { shift->{apps} } +sub _apps { shift->{apps} } sub app_for { my $self = shift; my ($for) = @_; - return $self->apps->{$for}; + return $self->_apps->{$for}; } sub app_from_request { |