man-pages/man3/URI::URL.3pm.html
2021-03-31 01:06:50 +01:00

119 lines
3.5 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of URI::URL</TITLE>
</HEAD><BODY>
<H1>URI::URL</H1>
Section: User Contributed Perl Documentation (3pm)<BR>Updated: 2020-02-08<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
URI::URL - Uniform Resource Locators
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<PRE>
$u1 = URI::URL-&gt;new($str, $base);
$u2 = $u1-&gt;abs;
</PRE>
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
This module is provided for backwards compatibility with modules that
depend on the interface provided by the <TT>&quot;URI::URL&quot;</TT> class that used to
be distributed with the libwww-perl library.
<P>
The following differences exist compared to the <TT>&quot;URI&quot;</TT> class interface:
<DL COMPACT>
<DT id="1">&bull;<DD>
The <FONT SIZE="-1">URI::URL</FONT> module exports the <B>url()</B> function as an alternate
constructor interface.
<DT id="2">&bull;<DD>
The constructor takes an optional <TT>$base</TT> argument. The <TT>&quot;URI::URL&quot;</TT>
class is a subclass of <TT>&quot;URI::WithBase&quot;</TT>.
<DT id="3">&bull;<DD>
The <FONT SIZE="-1">URI::URL-</FONT>&gt;newlocal class method is the same as URI::file-&gt;new_abs.
<DT id="4">&bull;<DD>
<B><A HREF="/cgi-bin/man/man2html?1+URI::URL::strict">URI::URL::strict</A></B>(1)
<DT id="5">&bull;<DD>
<TT>$url</TT>-&gt;print_on method
<DT id="6">&bull;<DD>
<TT>$url</TT>-&gt;crack method
<DT id="7">&bull;<DD>
<TT>$url</TT>-&gt;full_path: same as ($uri-&gt;abs_path || ``/'')
<DT id="8">&bull;<DD>
<TT>$url</TT>-&gt;netloc: same as <TT>$uri</TT>-&gt;authority
<DT id="9">&bull;<DD>
<TT>$url</TT>-&gt;epath, <TT>$url</TT>-&gt;equery: same as <TT>$uri</TT>-&gt;path, <TT>$uri</TT>-&gt;query
<DT id="10">&bull;<DD>
<TT>$url</TT>-&gt;path and <TT>$url</TT>-&gt;query pass unescaped strings.
<DT id="11">&bull;<DD>
<TT>$url</TT>-&gt;path_components: same as <TT>$uri</TT>-&gt;path_segments (if you don't
consider path segment parameters)
<DT id="12">&bull;<DD>
<TT>$url</TT>-&gt;params and <TT>$url</TT>-&gt;eparams methods
<DT id="13">&bull;<DD>
<TT>$url</TT>-&gt;base method. See URI::WithBase.
<DT id="14">&bull;<DD>
<TT>$url</TT>-&gt;abs and <TT>$url</TT>-&gt;rel have an optional <TT>$base</TT> argument. See
URI::WithBase.
<DT id="15">&bull;<DD>
<TT>$url</TT>-&gt;frag: same as <TT>$uri</TT>-&gt;fragment
<DT id="16">&bull;<DD>
<TT>$url</TT>-&gt;keywords: same as <TT>$uri</TT>-&gt;query_keywords
<DT id="17">&bull;<DD>
<TT>$url</TT>-&gt;localpath and friends map to <TT>$uri</TT>-&gt;file.
<DT id="18">&bull;<DD>
<TT>$url</TT>-&gt;address and <TT>$url</TT>-&gt;encoded822addr: same as <TT>$uri</TT>-&gt;to for mailto <FONT SIZE="-1">URI</FONT>
<DT id="19">&bull;<DD>
<TT>$url</TT>-&gt;groupart method for news <FONT SIZE="-1">URI</FONT>
<DT id="20">&bull;<DD>
<TT>$url</TT>-&gt;article: same as <TT>$uri</TT>-&gt;message
</DL>
<A NAME="lbAE">&nbsp;</A>
<H2>SEE ALSO</H2>
<FONT SIZE="-1">URI</FONT>, URI::WithBase
<A NAME="lbAF">&nbsp;</A>
<H2>COPYRIGHT</H2>
Copyright 1998-2000 Gisle Aas.
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="21"><A HREF="#lbAB">NAME</A><DD>
<DT id="22"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="23"><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT id="24"><A HREF="#lbAE">SEE ALSO</A><DD>
<DT id="25"><A HREF="#lbAF">COPYRIGHT</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:05:59 GMT, March 31, 2021
</BODY>
</HTML>