mod_perl logo
perl icon







previous page: APR::ThreadMutex - Perl API for XXXpage up: mod_perl APIsnext page: APR::Util - Perl API for XXX


APR::URI - Perl API for XXX











Embedding Perl in HTML with Mason

Embedding Perl in HTML with Mason

By Dave Rolsky, Ken Williams
Practical mod_perl

Practical mod_perl

By Stas Bekman, Eric Cholet
The mod_perl Developer's Cookbook

The mod_perl Developer's Cookbook

By Geoffrey Young, Paul Lindner, Randy Kobes


Table of Contents

Synopsis

  use APR::URI ();

META: to be completed



TOP

Description

META: to be completed



TOP

API

APR::URI provides the following functions and/or methods:



TOP

port_of_scheme

META: Autogenerated - needs to be reviewed/completed

Return the default port for a given scheme. The schemes recognized are http, ftp, https, gopher, wais, nntp, snews, and prospero

  $ret = port_of_scheme($scheme_str);


TOP

scheme

META: Autogenerated - needs to be reviewed/completed

scheme ("http"/"ftp"/...)

  $ret = $obj->scheme($newval);


TOP

hostinfo

META: Autogenerated - needs to be reviewed/completed

combined [user[:password]\@]host[:port]

  $ret = $obj->hostinfo($newval);


TOP

user

META: Autogenerated - needs to be reviewed/completed

user name, as in http://user:passwd\@host:port/

  $ret = $obj->user($newval);


TOP

password

META: Autogenerated - needs to be reviewed/completed

password, as in http://user:passwd\@host:port/

  $ret = $obj->password($newval);


TOP

hostname

META: Autogenerated - needs to be reviewed/completed

hostname from URI (or from Host: header)

  $ret = $obj->hostname($newval);


TOP

path

META: Autogenerated - needs to be reviewed/completed

the request path (or "/" if only scheme://host was given)

  $ret = $obj->path($newval);


TOP

query

META: Autogenerated - needs to be reviewed/completed

Everything after a '?' in the path, if present

  $ret = $obj->query($newval);


TOP

fragment

META: Autogenerated - needs to be reviewed/completed

Trailing "#fragment" string, if present

  $ret = $obj->fragment($newval);


TOP

is_initialized

META: Autogenerated - needs to be reviewed/completed

has the structure been initialized

  $ret = $obj->is_initialized($newval);


TOP

dns_looked_up

META: Autogenerated - needs to be reviewed/completed

has the DNS been looked up yet

  $ret = $obj->dns_looked_up($newval);


TOP

dns_resolved

META: Autogenerated - needs to be reviewed/completed

has the dns been resolved yet

  $ret = $obj->dns_resolved($newval);


TOP

See Also

mod_perl 2.0 documentation.



TOP

Copyright

mod_perl 2.0 and its core modules are copyrighted under The Apache Software License, Version 1.1.



TOP

Authors

The mod_perl development team and numerous contributors.







TOP
previous page: APR::ThreadMutex - Perl API for XXXpage up: mod_perl APIsnext page: APR::Util - Perl API for XXX