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/http.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/http.html')
-rw-r--r-- | doc/http.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/http.html b/doc/http.html index 66282a4..9f3f087 100644 --- a/doc/http.html +++ b/doc/http.html | |||
@@ -36,7 +36,7 @@ | |||
36 | 36 | ||
37 | <!-- http +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> | 37 | <!-- http +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> |
38 | 38 | ||
39 | <h2 id=http>HTTP</h2> | 39 | <h2 id="http">HTTP</h2> |
40 | 40 | ||
41 | <p> | 41 | <p> |
42 | HTTP (Hyper Text Transfer Protocol) is the protocol used to exchange | 42 | HTTP (Hyper Text Transfer Protocol) is the protocol used to exchange |
@@ -119,7 +119,7 @@ the HTTP module: | |||
119 | 119 | ||
120 | <!-- http.request ++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> | 120 | <!-- http.request ++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> |
121 | 121 | ||
122 | <p class=name id=request> | 122 | <p class=name id="request"> |
123 | http.<b>request(</b>url [, body]<b>)</b><br> | 123 | http.<b>request(</b>url [, body]<b>)</b><br> |
124 | http.<b>request{</b><br> | 124 | http.<b>request{</b><br> |
125 | url = <i>string</i>,<br> | 125 | url = <i>string</i>,<br> |
@@ -256,7 +256,7 @@ r, c, h = http.request { | |||
256 | -- } | 256 | -- } |
257 | </pre> | 257 | </pre> |
258 | 258 | ||
259 | <p class=note id=post> | 259 | <p class=note id="post"> |
260 | Note: When sending a POST request, simple interface adds a | 260 | Note: When sending a POST request, simple interface adds a |
261 | "<tt>Content-type: application/x-www-form-urlencoded</tt>" | 261 | "<tt>Content-type: application/x-www-form-urlencoded</tt>" |
262 | header to the request. This is the type used by | 262 | header to the request. This is the type used by |
@@ -264,7 +264,7 @@ HTML forms. If you need another type, use the generic | |||
264 | interface. | 264 | interface. |
265 | </p> | 265 | </p> |
266 | 266 | ||
267 | <p class=note id=authentication> | 267 | <p class=note id="authentication"> |
268 | Note: Some URLs are protected by their | 268 | Note: Some URLs are protected by their |
269 | servers from anonymous download. For those URLs, the server must receive | 269 | servers from anonymous download. For those URLs, the server must receive |
270 | some sort of authentication along with the request or it will deny | 270 | some sort of authentication along with the request or it will deny |