X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FRequest.pm;h=577d4de9a8b23e1217931ae258746829db63ca3a;hb=949f330d1f0f7d5fc868ddeb6f338733a2dfa39f;hp=9a7650dddc6088450e21b1d737b234bea4b78e80;hpb=ae7da8f5d10d2d8b4ada389cd260b4bb9d7b07d5;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Request.pm b/lib/Catalyst/Request.pm index 9a7650d..577d4de 100644 --- a/lib/Catalyst/Request.pm +++ b/lib/Catalyst/Request.pm @@ -138,6 +138,8 @@ sub query_params { shift->query_parameters(@_) } sub path_info { shift->path(@_) } sub snippets { shift->captures(@_) } +=for stopwords param params + =head1 NAME Catalyst::Request - provides information about the current client request @@ -228,7 +230,7 @@ Shortcut for L. =head2 $req->base Contains the URI base. This will always have a trailing slash. Note that the -URI scheme (eg., http vs. https) must be determined through heuristics; +URI scheme (e.g., http vs. https) must be determined through heuristics; depending on your server configuration, it may be incorrect. See $req->secure for more info. @@ -316,7 +318,7 @@ Returns an L object containing the headers for the current reques =head2 $req->hostname -Returns the hostname of the client. +Returns the hostname of the client. Use $req->uri->host to get the hostname of the server. =head2 $req->input @@ -427,6 +429,10 @@ Shortcut for $req->parameters. Returns the path, i.e. the part of the URI after $req->base, for the current request. + http://localhost/path/foo + + $c->request->path will contain 'path/foo' + =head2 $req->path_info Alias for path, added for compatibility with L. @@ -483,7 +489,7 @@ Shortcut for $req->headers->referer. Returns the referring page. =head2 $req->secure Returns true or false, indicating whether the connection is secure -(https). Note that the URI scheme (eg., http vs. https) must be determined +(https). Note that the URI scheme (e.g., http vs. https) must be determined through heuristics, and therefore the reliability of $req->secure will depend on your server configuration. If you are serving secure pages on the standard SSL port (443) and/or setting the HTTPS environment variable, $req->secure