X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FRequest.pm;h=aa2c03d3c62ced41f9844a6beb76a8a25afbfd4e;hb=3c4c7ea9658b71113c851da0148002fffe1bac09;hp=6d14c5bf21dc9b03366c89bc10aa4993ffd5ba9b;hpb=178dca5f50ddbee5adbfdbc7c6311f83da9efd50;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Request.pm b/lib/Catalyst/Request.pm index 6d14c5b..aa2c03d 100644 --- a/lib/Catalyst/Request.pm +++ b/lib/Catalyst/Request.pm @@ -14,6 +14,17 @@ use namespace::clean -except => 'meta'; with 'MooseX::Emulate::Class::Accessor::Fast'; +has env => (is => 'ro', writer => '_set_env'); + +has _read_position => ( is => 'rw', default => 0 ); +has _read_length => ( is => 'ro', + default => sub { + my $self = shift; + $self->header('Content-Length') || 0; + }, + lazy => 1, +); + has action => (is => 'rw'); has address => (is => 'rw'); has arguments => (is => 'rw', default => sub { [] });