diff options
| author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2005-02-08 10:01:01 +0000 |
|---|---|---|
| committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2005-02-08 10:01:01 +0000 |
| commit | 8d4e240f6ae50d9b22ddc44f5e207018935da907 (patch) | |
| tree | d8ca9a51dc35534592f700e42740feac20242ede /doc/http.html | |
| parent | 5d32848674b723521e87836eafa24f5ae8f80a89 (diff) | |
| download | luasocket-8d4e240f6ae50d9b22ddc44f5e207018935da907.tar.gz luasocket-8d4e240f6ae50d9b22ddc44f5e207018935da907.tar.bz2 luasocket-8d4e240f6ae50d9b22ddc44f5e207018935da907.zip | |
Forward server working on Mac OS X...
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 4cbbe95..af58571 100644 --- a/doc/http.html +++ b/doc/http.html | |||
| @@ -62,7 +62,7 @@ To obtain the <tt>http</tt> namespace, run: | |||
| 62 | 62 | ||
| 63 | <pre class=example> | 63 | <pre class=example> |
| 64 | -- loads the HTTP module and any libraries it requires | 64 | -- loads the HTTP module and any libraries it requires |
| 65 | local http = require("http") | 65 | local http = require("socket.http") |
| 66 | </pre> | 66 | </pre> |
| 67 | 67 | ||
| 68 | <p> | 68 | <p> |
| @@ -206,7 +206,7 @@ Here are a few examples with the simple interface: | |||
| 206 | 206 | ||
| 207 | <pre class=example> | 207 | <pre class=example> |
| 208 | -- load the http module | 208 | -- load the http module |
| 209 | http = require("http") | 209 | http = require("socket.http") |
| 210 | 210 | ||
| 211 | -- connect to server "www.tecgraf.puc-rio.br" and retrieves this manual | 211 | -- connect to server "www.tecgraf.puc-rio.br" and retrieves this manual |
| 212 | -- file from "/luasocket/http.html" | 212 | -- file from "/luasocket/http.html" |
| @@ -231,7 +231,7 @@ And here is an example using the generic interface: | |||
| 231 | 231 | ||
| 232 | <pre class=example> | 232 | <pre class=example> |
| 233 | -- load the http module | 233 | -- load the http module |
| 234 | http = require("http") | 234 | http = require("socket.http") |
| 235 | 235 | ||
| 236 | -- Requests information about a document, without downloading it. | 236 | -- Requests information about a document, without downloading it. |
| 237 | -- Useful, for example, if you want to display a download gauge and need | 237 | -- Useful, for example, if you want to display a download gauge and need |
| @@ -276,7 +276,7 @@ authentication is required. | |||
| 276 | 276 | ||
| 277 | <pre class=example> | 277 | <pre class=example> |
| 278 | -- load required modules | 278 | -- load required modules |
| 279 | http = require("http") | 279 | http = require("socket.http") |
| 280 | mime = require("mime") | 280 | mime = require("mime") |
| 281 | 281 | ||
| 282 | -- Connect to server "www.example.com" and tries to retrieve | 282 | -- Connect to server "www.example.com" and tries to retrieve |
