GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
URI::Template::Restrict(3) User Contributed Perl Documentation URI::Template::Restrict(3)

URI::Template::Restrict - restricted URI Templates handler

    use URI::Template::Restrict;

    my $template = URI::Template::Restrict->new(
        'http://example.com/{foo}'
    );

    my $uri = $template->process(foo => 'y');
    # $uri: "http://example.com/y"

    my %result = $template->extract($uri);
    # %result: (foo => 'y')

This is a restricted URI Templates handler. URI Templates is described at <http://bitworking.org/projects/URI-Templates/>.

This module supports draft-gregorio-uritemplate-03 except -opt and -neg operators.

Creates a new instance with the template.

Given a hash of key-value pairs. It will URI escape the values, substitute them in to the template, and return a URI object.

Processes input like the process method, but doesn't inflate the result to a URI object.

Extracts variables from an uri based on the current template. Returns a hash with the extracted values.

Returns the original template string.

Returns a list of unique variable names found in the template.

Returns a list of URI::Template::Restrict::Expansion objects found in the template.

NAKAGAWA Masaki <masaki@cpan.org>

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

URI::Template, <http://bitworking.org/projects/URI-Templates/>
2010-08-28 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.