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/url.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/url.html')
| -rw-r--r-- | doc/url.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/url.html b/doc/url.html index 56e1ef5..ac84d24 100644 --- a/doc/url.html +++ b/doc/url.html | |||
| @@ -52,7 +52,7 @@ To obtain the <tt>url</tt> namespace, run: | |||
| 52 | 52 | ||
| 53 | <pre class=example> | 53 | <pre class=example> |
| 54 | -- loads the URL module | 54 | -- loads the URL module |
| 55 | local url = require("url") | 55 | local url = require("socket.url") |
| 56 | </pre> | 56 | </pre> |
| 57 | 57 | ||
| 58 | <p> | 58 | <p> |
| @@ -193,7 +193,7 @@ The function returns the encoded string. | |||
| 193 | 193 | ||
| 194 | <pre class=example> | 194 | <pre class=example> |
| 195 | -- load url module | 195 | -- load url module |
| 196 | url = require("url") | 196 | url = require("socket.url") |
| 197 | 197 | ||
| 198 | code = url.escape("/#?;") | 198 | code = url.escape("/#?;") |
| 199 | -- code = "%2f%23%3f%3b" | 199 | -- code = "%2f%23%3f%3b" |
| @@ -239,7 +239,7 @@ parsed_url = {<br> | |||
| 239 | 239 | ||
| 240 | <pre class=example> | 240 | <pre class=example> |
| 241 | -- load url module | 241 | -- load url module |
| 242 | url = require("url") | 242 | url = require("socket.url") |
| 243 | 243 | ||
| 244 | parsed_url = url.parse("http://www.example.com/cgilua/index.lua?a=2#there") | 244 | parsed_url = url.parse("http://www.example.com/cgilua/index.lua?a=2#there") |
| 245 | -- parsed_url = { | 245 | -- parsed_url = { |
