Forward server working on Mac OS X...
This commit is contained in:
parent
5d32848674
commit
8d4e240f6a
29 changed files with 800 additions and 101 deletions
|
@ -52,7 +52,7 @@ To obtain the <tt>url</tt> namespace, run:
|
|||
|
||||
<pre class=example>
|
||||
-- loads the URL module
|
||||
local url = require("url")
|
||||
local url = require("socket.url")
|
||||
</pre>
|
||||
|
||||
<p>
|
||||
|
@ -193,7 +193,7 @@ The function returns the encoded string.
|
|||
|
||||
<pre class=example>
|
||||
-- load url module
|
||||
url = require("url")
|
||||
url = require("socket.url")
|
||||
|
||||
code = url.escape("/#?;")
|
||||
-- code = "%2f%23%3f%3b"
|
||||
|
@ -239,7 +239,7 @@ parsed_url = {<br>
|
|||
|
||||
<pre class=example>
|
||||
-- load url module
|
||||
url = require("url")
|
||||
url = require("socket.url")
|
||||
|
||||
parsed_url = url.parse("http://www.example.com/cgilua/index.lua?a=2#there")
|
||||
-- parsed_url = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue