NAME
Apache::URI - Perl API for manipulating URIs
Synopsis
use Apache::URI ();
META: to be completed
Description
META: to be completed
API
Apache::URI
provides the following functions and/or methods:
construct_server
META: Autogenerated - needs to be reviewed/completed
Construct a full hostname
$hostname = $r->construct_server($hostname, $port, $p);
- obj:
$r
(Apache::RequestRec
) -
The current request
- arg1:
$hostname
(string) -
The hostname of the server
- arg2:
$port
(string) -
The port the server is running on
- arg3:
$p
(APR::Pool
) -
The pool to allocate from
- ret:
$hostname
(string) -
The server's hostname
construct_url
META: Autogenerated - needs to be reviewed/completed
build a fully qualified URL from the uri and information in the request rec
$ret = $r->construct_url($uri, $p);
- obj:
$r
(Apache::RequestRec
) -
The current request
- arg1:
$uri
(string) -
The path to the requested file
- arg2:
$p
(APR::Pool
) -
The pool to allocate the URL from
- ret:
$ret
(string) -
A fully qualified URL
parse_uri
META: Autogenerated - needs to be reviewed/completed
parse_uri: break apart the uri
$r->parse_uri($uri);
- obj:
$r
(Apache::RequestRec
) -
The current request
- arg1:
$uri
(string) -
The uri to break apart
- ret: no return value
unescape_url
Unescape URLs
unescape_url($url);
- obj:
$url
(string) -
The URL to unescape
- ret: nothing
-
The argument
$url
is now unescaped - since: 1.99_10
For example:
my $url = join '%20', qw(one two three);
Apache::URI::unescape_url($url);
See Also
Copyright
mod_perl 2.0 and its core modules are copyrighted under The Apache Software License, Version 1.1.