diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-06-16 23:21:49 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-06-16 23:21:49 +0000 |
commit | 27c8ae30aaef25d537669062d5f7f929eec18032 (patch) | |
tree | 1a141b842e1b5ed49c0bc4385cabdae95c204e83 /doc/url.html | |
parent | 9fc682a106f13901b60a665619fc61d9dae49fb0 (diff) | |
download | luasocket-27c8ae30aaef25d537669062d5f7f929eec18032.tar.gz luasocket-27c8ae30aaef25d537669062d5f7f929eec18032.tar.bz2 luasocket-27c8ae30aaef25d537669062d5f7f929eec18032.zip |
Updated the HTTP manual. Finaly done.
Diffstat (limited to 'doc/url.html')
-rw-r--r-- | doc/url.html | 14 |
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> |
39 | The module <tt>url.lua</tt> provides functions to parse, protect, | 39 | The <tt>url</tt> namespace provides functions to parse, protect, |
40 | and build URLs, as well as functions to compose absolute URLs | 40 | and build URLs, as well as functions to compose absolute URLs |
41 | from base and relative URLs, according to | 41 | from 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 |
43 | 2396</a>. | 43 | 2396</a>. |
44 | </p> | 44 | </p> |
45 | 45 | ||
46 | <p> | ||
47 | To obtain the <tt>url</tt> namespace, run: | ||
48 | </p> | ||
49 | |||
50 | <pre class=example> | ||
51 | -- loads the URL module | ||
52 | local url = require("url") | ||
53 | </pre> | ||
54 | |||
46 | <p> | 55 | <p> |
47 | An URL is defined by the following grammar: | 56 | An 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 |
80 | a parsed URL table. <tt>Relative</tt> is a | ||
71 | string with the relative URL. | 81 | string with the relative URL. |
72 | </p> | 82 | </p> |
73 | 83 | ||