NAME
Lib::Furl - binding for stricaud faup library
SYNOPSIS
#
# Perl code
#
use
Lib::Furl;
my
$furl
= Lib::Furl->new;
$furl
->decode(
$url
);
my
$h
=
$furl
->get;
Dumper(
$h
),
"\n"
;
#
# Output
#
$VAR1
= {
'fragment'
=>
''
,
'query_string'
=>
'?test=1'
,
'url_len'
=> 60,
'subdomain'
=>
'subdom'
,
'scheme'
=>
'https'
,
'port'
=>
'81'
,
'host'
=>
'subdom.github.com'
,
'tld'
=>
'com'
,
'domain'
=>
'github.com'
,
'resource_path'
=>
'/stricaud/faup/'
,
'credential'
=>
'user:pass'
};
OBJECT-ORIENTED API
ATTRIBUTES
- url
-
The URL to decode.
- sep
-
Seperator to use when calling show.
- out
-
Output file to use (default STDOUT) when calling show.
METHODS
- new ()
-
Returns a new Furl object.
- decode ($url)
-
Decodes the URL, returns undef on error or $self object on success.
- get ()
-
Returns a hashref of decoded URL. Returns undef on error.
- show ()
-
Prints the decoded URL into
C-ORIENTED API
- furl_init ()
- furl_get_version ()
- furl_decode ()
- furl_show ()
- furl_terminate ()
- furl_get_credential_pos ()
- furl_get_credential_size ()
- furl_get_domain_pos ()
- furl_get_domain_size ()
- furl_get_fragment_pos ()
- furl_get_fragment_size ()
- furl_get_host_pos ()
- furl_get_host_size ()
- furl_get_port_pos ()
- furl_get_port_size ()
- furl_get_query_string_pos ()
- furl_get_query_string_size ()
- furl_get_resource_path_pos ()
- furl_get_resource_path_size ()
- furl_get_scheme_pos ()
- furl_get_scheme_size ()
- furl_get_subdomain_pos ()
- furl_get_subdomain_size ()
- furl_get_tld_pos ()
- furl_get_tld_size ()
CONSTANTS
COPYRIGHT AND LICENSE
You may distribute this module under the terms of the BSD license. See LICENSE file in the source distribution archive.
Copyright (c) 2012, Patrice <GomoR> Auffret