From: Tomas Doran Date: Tue, 1 Nov 2011 20:09:06 +0000 (+0000) Subject: Start re-arranging and fixing docs. remove docs for deprecated stuff X-Git-Tag: 5.90008~16^2~8 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=767480fd8b4151e350831a52dbc9c6265bf84485 Start re-arranging and fixing docs. remove docs for deprecated stuff --- diff --git a/lib/Catalyst/Engine.pm b/lib/Catalyst/Engine.pm index 67e4dab..a66847a 100644 --- a/lib/Catalyst/Engine.pm +++ b/lib/Catalyst/Engine.pm @@ -592,6 +592,18 @@ sub prepare_uploads { } } +=head2 $self->write($c, $buffer) + +Writes the buffer to the client. + +=cut + +sub write { + my ( $self, $c, $buffer ) = @_; + + $c->response->write($buffer); +} + =head2 $self->read($c, [$maxlength]) Reads from the input stream by calling C<< $self->read_chunk >>. @@ -619,15 +631,6 @@ sub read_chunk { return $ctx->request->read_chunk(@_); } -=head2 $self->read_length - -The length of input data to be read. This is obtained from the Content-Length -header. - -=head2 $self->read_position - -The amount of input data that has already been read. - =head2 $self->run($app, $server) Start the engine. Builds a PSGI application and calls the @@ -685,18 +688,6 @@ sub build_psgi_app { }; } -=head2 $self->write($c, $buffer) - -Writes the buffer to the client. - -=cut - -sub write { - my ( $self, $c, $buffer ) = @_; - - $c->response->write($buffer); -} - =head2 $self->unescape_uri($uri) Unescapes a given URI using the most efficient method available. Engines such diff --git a/lib/Catalyst/Request.pm b/lib/Catalyst/Request.pm index 997b3ba..442f888 100644 --- a/lib/Catalyst/Request.pm +++ b/lib/Catalyst/Request.pm @@ -25,7 +25,7 @@ has _read_length => ( is => 'ro', lazy => 1, ); -has action => (is => 'rw'); +has action => (is => 'rw'); # XXX Deprecated - warn? has address => (is => 'rw'); has arguments => (is => 'rw', default => sub { [] }); has cookies => (is => 'ro', builder => 'prepare_cookies', lazy => 1); @@ -331,8 +331,7 @@ Catalyst::Request - provides information about the current client request =head1 SYNOPSIS $req = $c->request; - $req->action; - $req->address; + $req->address eq "127.0.0.1"; $req->arguments; $req->args; $req->base; @@ -376,14 +375,6 @@ thus hiding the details of the particular engine implementation. =head1 METHODS -=head2 $req->action - -[DEPRECATED] Returns the name of the requested action. - - -Use C<< $c->action >> instead (which returns a -L object). - =head2 $req->address Returns the IP address of the client.