874
edits
(→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: | ||
{|cellpadding="5" cellspacing="0" border="1" width="100%" | |||
|<tt>scheme</tt> | |||
|The name of the protocol in 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> === | ||
edits