diff options
author | Diego Nehab <diego.nehab@gmail.com> | 2012-04-17 01:15:26 +0800 |
---|---|---|
committer | Diego Nehab <diego.nehab@gmail.com> | 2012-04-17 01:15:26 +0800 |
commit | f37e0260261f7691246429d227cf7124c291e8b1 (patch) | |
tree | 7e84322c8852d4227e36958af1132a4588f64795 /doc/url.html | |
parent | b3c4f46179ed5b27ca76a824f8730fa50dbaae0b (diff) | |
download | luasocket-f37e0260261f7691246429d227cf7124c291e8b1.tar.gz luasocket-f37e0260261f7691246429d227cf7124c291e8b1.tar.bz2 luasocket-f37e0260261f7691246429d227cf7124c291e8b1.zip |
First stab at documenation
Update Lua and Luasocket version in samples and in documentation
Documented ipv5_v6only default option being set
Documented tcp6 and udp6
Documented dns.getaddrinfo
Documented zero-sized datagram change?
Documented getoption
Diffstat (limited to 'doc/url.html')
-rw-r--r-- | doc/url.html | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/url.html b/doc/url.html index 9f234d9..6ff673d 100644 --- a/doc/url.html +++ b/doc/url.html | |||
@@ -36,7 +36,7 @@ | |||
36 | 36 | ||
37 | <!-- url ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> | 37 | <!-- url ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> |
38 | 38 | ||
39 | <h2 id=url>URL</h2> | 39 | <h2 id="url">URL</h2> |
40 | 40 | ||
41 | <p> | 41 | <p> |
42 | The <tt>url</tt> namespace provides functions to parse, protect, | 42 | The <tt>url</tt> namespace provides functions to parse, protect, |
@@ -69,7 +69,7 @@ An URL is defined by the following grammar: | |||
69 | 69 | ||
70 | <!-- absolute +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> | 70 | <!-- absolute +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> |
71 | 71 | ||
72 | <p class=name id=absolute> | 72 | <p class=name id="absolute"> |
73 | url.<b>absolute(</b>base, relative<b>)</b> | 73 | url.<b>absolute(</b>base, relative<b>)</b> |
74 | </p> | 74 | </p> |
75 | 75 | ||
@@ -125,7 +125,7 @@ g;x?y#s = http://a/b/c/g;x?y#s | |||
125 | 125 | ||
126 | <!-- build ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> | 126 | <!-- build ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> |
127 | 127 | ||
128 | <p class=name id=build> | 128 | <p class=name id="build"> |
129 | url.<b>build(</b>parsed_url<b>)</b> | 129 | url.<b>build(</b>parsed_url<b>)</b> |
130 | </p> | 130 | </p> |
131 | 131 | ||
@@ -146,7 +146,7 @@ The function returns a string with the built URL. | |||
146 | 146 | ||
147 | <!-- build_path +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> | 147 | <!-- build_path +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> |
148 | 148 | ||
149 | <p class=name id=build_path> | 149 | <p class=name id="build_path"> |
150 | url.<b>build_path(</b>segments, unsafe<b>)</b> | 150 | url.<b>build_path(</b>segments, unsafe<b>)</b> |
151 | </p> | 151 | </p> |
152 | 152 | ||
@@ -200,7 +200,7 @@ code = url.escape("/#?;") | |||
200 | 200 | ||
201 | <!-- parse ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> | 201 | <!-- parse ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> |
202 | 202 | ||
203 | <p class=name id=parse> | 203 | <p class=name id="parse"> |
204 | url.<b>parse(</b>url, default<b>)</b> | 204 | url.<b>parse(</b>url, default<b>)</b> |
205 | </p> | 205 | </p> |
206 | 206 | ||
@@ -265,7 +265,7 @@ parsed_url = url.parse("ftp://root:passwd@unsafe.org/pub/virus.exe;type=i") | |||
265 | 265 | ||
266 | <!-- parse_path +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> | 266 | <!-- parse_path +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> |
267 | 267 | ||
268 | <p class=name id=parse_path> | 268 | <p class=name id="parse_path"> |
269 | url.<b>parse_path(</b>path<b>)</b> | 269 | url.<b>parse_path(</b>path<b>)</b> |
270 | </p> | 270 | </p> |
271 | 271 | ||