Labs/Jetpack/JEP/28: Difference between revisions

Jump to navigation Jump to search
→‎url: made url info dict into a table layout
(→‎url: added section on url.parse())
(→‎url: made url info dict into a table layout)
Line 133: Line 133:
Parses the URL and returns an object with following keys:
Parses the URL and returns an object with following keys:


::<tt>scheme</tt> is the protocol of the URL.
{|cellpadding="5" cellspacing="0" border="1" width="100%"
::<tt>userPass</tt> is the username and password associated with the URL, <tt>null</tt> if not present.
|<tt>scheme</tt>
::<tt>host</tt> is the host of the URL, <tt>null</tt> if not present.
|The name of the protocol in the URL.
::<tt>port</tt> is the port of the URL, <tt>null</tt> if not present.
|-
::<tt>path</tt> is the path component of the URL.
|<tt>userPass</tt>
|The username:password part of the URL; <tt>null</tt> if not present.
|-
|<tt>host</tt>
|The host of the URL, <tt>null</tt> if not present.
|-
|<tt>port</tt>
|The port number of the URL, <tt>null</tt> if none was specified.
|-
|<tt>path</tt>
|The path component of the URL.
|}


=== <tt>traceback</tt> ===
=== <tt>traceback</tt> ===
874

edits

Navigation menu