summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2012-07-17 22:53:28 -0500
committerJesse Luehrs <doy@tozt.net>2012-07-17 22:53:28 -0500
commite444611c7f7a4ceefb7614c6119162a3686733c1 (patch)
treef7c379fda328efe45bb70f10cf39fef64d756141 /lib
parentfed9bc157ca3e60a06be9541dbdb0188f31f3d5f (diff)
downloadweb-request-e444611c7f7a4ceefb7614c6119162a3686733c1.tar.gz
web-request-e444611c7f7a4ceefb7614c6119162a3686733c1.zip
base_uri instead of uri_base
Diffstat (limited to 'lib')
-rw-r--r--lib/Web/Request.pm10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/Web/Request.pm b/lib/Web/Request.pm
index cecda74..185f4d7 100644
--- a/lib/Web/Request.pm
+++ b/lib/Web/Request.pm
@@ -36,7 +36,7 @@ has env => (
},
);
-has _uri_base => (
+has _base_uri => (
is => 'ro',
isa => 'Str',
lazy => 1,
@@ -56,11 +56,11 @@ has _uri_base => (
},
);
-has uri_base => (
+has base_uri => (
is => 'ro',
isa => 'URI',
lazy => 1,
- default => sub { URI->new(shift->_uri_base)->canonical },
+ default => sub { URI->new(shift->_base_uri)->canonical },
);
has uri => (
@@ -70,7 +70,7 @@ has uri => (
default => sub {
my $self = shift;
- my $base = $self->_uri_base;
+ my $base = $self->_base_uri;
# We have to escape back PATH_INFO in case they include stuff
# like ? or # so that the URI parser won't be tricked. However
@@ -246,8 +246,6 @@ sub path {
return '/';
}
-sub uri_base { URI->new(shift->_uri_base)->canonical; }
-
sub new_response {
my $self = shift;