Changed: | ||||||||
< < | Package = | |||||||
> > | Package =TWiki::Request | |||||||
Deleted: | ||||||||
< < | On this page:
package TWiki::Request | |||||||
Class to encapsulate request data.
Fields:
| ||||||||
Added: | ||||||||
> > |
On this page:
| |||||||
ClassMethod new ([$initializer])Constructs a TWiki::Request object.
ObjectMethod action () -> $actionGets/Sets action requested (view, edit, save, ...)ObjectMethod method ([$method]) -> $methodDEPRECATED. Sets/Gets request method (GET, HEAD, POST). Same as request_method() method.ObjectMethod request_method ([$method]) -> $methodSets/Gets request method (GET, HEAD, POST).ObjectMethod pathInfo ([$path]) -> $pathSets/Gets request path info. Called without parameters returns current pathInfo. There is apath_info() alias for compatibility with CGI.
ObjectMethod protocol () -> $protocolReturns 'https' if secure connection. 'http' otherwise.ObjectMethod uri ([$uri]) -> $uriGets/Sets request uri.ObjectMethod queryString () -> $query_stringReturns query_string part of request uri, if any.query_string() alias provided for compatibility with CGI.
ObjectMethod url ([-full=>1,-base => 1, -absolute => 1, -relative => 1, -path => 1, -query => 1] ) -> $url Returns many url info.
ObjectMethod secure ([$secure]) -> $secureGets/Sets connection's secure flag.ObjectMethod remoteAddress ([$ip]) -> $ipGets/Sets client IP address.remote_addr() alias for compatibility with CGI.
ObjectMethod remoteUser ([$userName]) -> $userNameGets/Sets remote user's name.remote_user() alias for compatibility with CGI.
ObjectMethod serverPort ([$userName]) -> $userNameGets/Sets server user's name.server_port() alias for compatibility with CGI.
ObjectMethod queryParam ([-name=>$name,-value=>$value|-name => $name, -values => [ $v1, $v2, ... ] | $name, $v1, $v2, ... | name, [ $v1, $v2, ... ] ] ) -> @paramNames![]() ![]() ObjectMethod bodyParam ([-name=>$name,-value=>$value|-name => $name, -values => [ $v1, $v2, ... ] | $name, $v1, $v2, ... | name, [ $v1, $v2, ... ] ] ) -> @paramNames![]() ![]() ObjectMethod param ([-name=>$name,-value=>$value|-name => $name, -values => [ $v1, $v2, ... ] | $name, $v1, $v2, ... | name, [ $v1, $v2, ... ] ] ) -> @paramNames![]() ![]()
ObjectMethod cookie ($name[,$value,$path,$secure,$expires]) -> $value
@paramNam
Deletes parameters from request.
|
Package =On this page:
package TWiki::RequestClass to encapsulate request data. Fields:
ClassMethod new ([$initializer])Constructs a TWiki::Request object.
ObjectMethod action () -> $actionGets/Sets action requested (view, edit, save, ...)ObjectMethod method ([$method]) -> $methodDEPRECATED. Sets/Gets request method (GET, HEAD, POST). Same as request_method() method.ObjectMethod request_method ([$method]) -> $methodSets/Gets request method (GET, HEAD, POST).ObjectMethod pathInfo ([$path]) -> $pathSets/Gets request path info. Called without parameters returns current pathInfo. There is apath_info() alias for compatibility with CGI.
ObjectMethod protocol () -> $protocolReturns 'https' if secure connection. 'http' otherwise.ObjectMethod uri ([$uri]) -> $uriGets/Sets request uri.ObjectMethod queryString () -> $query_stringReturns query_string part of request uri, if any.query_string() alias provided for compatibility with CGI.
ObjectMethod url ([-full=>1,-base => 1, -absolute => 1, -relative => 1, -path => 1, -query => 1] ) -> $url Returns many url info.
ObjectMethod secure ([$secure]) -> $secureGets/Sets connection's secure flag.ObjectMethod remoteAddress ([$ip]) -> $ipGets/Sets client IP address.remote_addr() alias for compatibility with CGI.
ObjectMethod remoteUser ([$userName]) -> $userNameGets/Sets remote user's name.remote_user() alias for compatibility with CGI.
ObjectMethod serverPort ([$userName]) -> $userNameGets/Sets server user's name.server_port() alias for compatibility with CGI.
ObjectMethod queryParam ([-name=>$name,-value=>$value|-name => $name, -values => [ $v1, $v2, ... ] | $name, $v1, $v2, ... | name, [ $v1, $v2, ... ] ] ) -> @paramNames![]() ![]() ObjectMethod bodyParam ([-name=>$name,-value=>$value|-name => $name, -values => [ $v1, $v2, ... ] | $name, $v1, $v2, ... | name, [ $v1, $v2, ... ] ] ) -> @paramNames![]() ![]() ObjectMethod param ([-name=>$name,-value=>$value|-name => $name, -values => [ $v1, $v2, ... ] | $name, $v1, $v2, ... | name, [ $v1, $v2, ... ] ] ) -> @paramNames![]() ![]()
ObjectMethod cookie ($name[,$value,$path,$secure,$expires]) -> $value
@paramNam
Deletes parameters from request.
|