Rose::URI: an URI module specifically tailored for use with Rose.
This commit is contained in:
parent
b711c9de3a
commit
db7ec158c8
17
www/p5-Rose-URI/Makefile
Normal file
17
www/p5-Rose-URI/Makefile
Normal file
@ -0,0 +1,17 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2007/04/16 20:31:28 espie Exp $
|
||||
COMMENT= 'URI objects for Rose'
|
||||
|
||||
MODULES= cpan
|
||||
DISTNAME= Rose-URI-0.021
|
||||
CATEGORIES= www
|
||||
|
||||
RUN_DEPENDS= ::www/p5-URI \
|
||||
::databases/p5-Rose-Object
|
||||
|
||||
# Perl
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
|
||||
.include <bsd.port.mk>
|
5
www/p5-Rose-URI/distinfo
Normal file
5
www/p5-Rose-URI/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
MD5 (Rose-URI-0.021.tar.gz) = Mms/rt9dMVs6ImkM7jCUGA==
|
||||
RMD160 (Rose-URI-0.021.tar.gz) = Ktp1DuRXdHzGFCDqebanA5OYG2g=
|
||||
SHA1 (Rose-URI-0.021.tar.gz) = mnZ9TYTiFk1eJ4xQcNFC4VHfG1g=
|
||||
SHA256 (Rose-URI-0.021.tar.gz) = pXDlfE/froe8eFgLUIzUapK1lcHipUEwyG+4clDZzb0=
|
||||
SIZE (Rose-URI-0.021.tar.gz) = 8019
|
30
www/p5-Rose-URI/pkg/DESCR
Normal file
30
www/p5-Rose-URI/pkg/DESCR
Normal file
@ -0,0 +1,30 @@
|
||||
An URI class allowing easy and efficient manipulation of query
|
||||
parameters and other URI components.
|
||||
|
||||
use Rose::URI;
|
||||
|
||||
$uri = Rose::URI->new('http://un:pw@foo.com/bar/baz?a=1&b=two+3');
|
||||
|
||||
$scheme = $uri->scheme;
|
||||
$user = $uri->username;
|
||||
$pass = $uri->password;
|
||||
$host = $uri->host;
|
||||
$path = $uri->path;
|
||||
|
||||
Rose::URI is an alternative to URI. The important differences are
|
||||
as follows.
|
||||
|
||||
Rose::URI provides a rich set of query string manipulation methods.
|
||||
Query parameters can be added, removed, and checked for their
|
||||
existence. URI allows the entire query to be set or returned as a
|
||||
whole via the query_form|URI/query_form> or L<query|URI/query
|
||||
methods, and the URI::QueryParam module provides a few more methods
|
||||
for query string manipulation.
|
||||
|
||||
Rose::URI supports query parameters with multiple values (e.g.
|
||||
"a=1&a=2"). URI has limited support for this (through
|
||||
query_form|URI/query_form's list return value. Better methods are
|
||||
available in URI::QueryParam.
|
||||
|
||||
Rose::URI uses Apache's C-based URI parsing and HTML escaping
|
||||
functions when running in a mod_perl 1.x web server environment.
|
3
www/p5-Rose-URI/pkg/PLIST
Normal file
3
www/p5-Rose-URI/pkg/PLIST
Normal file
@ -0,0 +1,3 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2007/04/16 20:31:28 espie Exp $
|
||||
${P5SITE}/Rose/URI.pm
|
||||
@man man/man3p/Rose::URI.3p
|
Loading…
Reference in New Issue
Block a user