aboutsummaryrefslogtreecommitdiff
path: root/doc/url.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/url.html')
-rw-r--r--doc/url.html14
1 files changed, 12 insertions, 2 deletions
diff --git a/doc/url.html b/doc/url.html
index cd699a2..1dbee52 100644
--- a/doc/url.html
+++ b/doc/url.html
@@ -36,13 +36,22 @@
36<h2 id=url>URL</h2> 36<h2 id=url>URL</h2>
37 37
38<p> 38<p>
39The module <tt>url.lua</tt> provides functions to parse, protect, 39The <tt>url</tt> namespace provides functions to parse, protect,
40and build URLs, as well as functions to compose absolute URLs 40and build URLs, as well as functions to compose absolute URLs
41from base and relative URLs, according to 41from base and relative URLs, according to
42<a href="http://www.cs.princeton.edu/~diego/rfc/rfc2396.txt">RFC 42<a href="http://www.cs.princeton.edu/~diego/rfc/rfc2396.txt">RFC
432396</a>. 432396</a>.
44</p> 44</p>
45 45
46<p>
47To obtain the <tt>url</tt> namespace, run:
48</p>
49
50<pre class=example>
51-- loads the URL module
52local url = require("url")
53</pre>
54
46<p> 55<p>
47An URL is defined by the following grammar: 56An URL is defined by the following grammar:
48</p> 57</p>
@@ -67,7 +76,8 @@ Builds an absolute URL from a base URL and a relative URL.
67</p> 76</p>
68 77
69<p class=parameters> 78<p class=parameters>
70<tt>Base</tt> is a string with the base URL and <tt>relative</tt> is a 79<tt>Base</tt> is a string with the base URL or
80a parsed URL table. <tt>Relative</tt> is a
71string with the relative URL. 81string with the relative URL.
72</p> 82</p>
73 83