diff options
| author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-02-04 14:29:11 +0000 |
|---|---|---|
| committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-02-04 14:29:11 +0000 |
| commit | 0b2542d1a61fc5425ff65ab3dbf7ba7de174763f (patch) | |
| tree | 8a6188e11db0c9ef6891c31e8a1bebca050b23b2 /doc/url.html | |
| parent | f67864f86c7d703325e86b14d0ba33992c52891b (diff) | |
| download | luasocket-0b2542d1a61fc5425ff65ab3dbf7ba7de174763f.tar.gz luasocket-0b2542d1a61fc5425ff65ab3dbf7ba7de174763f.tar.bz2 luasocket-0b2542d1a61fc5425ff65ab3dbf7ba7de174763f.zip | |
Worked on the manual.
Implemented stuffing (needs test)
Added cddb and qp examples.
Diffstat (limited to 'doc/url.html')
| -rw-r--r-- | doc/url.html | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/doc/url.html b/doc/url.html index 0eafafa..f3a7cb7 100644 --- a/doc/url.html +++ b/doc/url.html | |||
| @@ -241,6 +241,50 @@ returning a list with all the parsed segments, the function unescapes all | |||
| 241 | of them. | 241 | of them. |
| 242 | </p> | 242 | </p> |
| 243 | 243 | ||
| 244 | <!-- escape +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> | ||
| 245 | |||
| 246 | <p class=name id="escape"> | ||
| 247 | socket.url.<b>escape(</b>content<b>)</b> | ||
| 248 | </p> | ||
| 249 | |||
| 250 | <p class=description> | ||
| 251 | Applies the URL escaping content coding to a string | ||
| 252 | Each byte is encoded as a percent character followed | ||
| 253 | by the two byte hexadecimal representation of its integer | ||
| 254 | value. | ||
| 255 | </p> | ||
| 256 | |||
| 257 | <p class=parameters> | ||
| 258 | <tt>Content</tt> is the string to be encoded. | ||
| 259 | </p> | ||
| 260 | |||
| 261 | <p class=result> | ||
| 262 | The function returns the encoded string. | ||
| 263 | </p> | ||
| 264 | |||
| 265 | <pre class=example> | ||
| 266 | code = socket.url.escape("/#?;") | ||
| 267 | -- code = "%2f%23%3f%3b" | ||
| 268 | </pre> | ||
| 269 | |||
| 270 | <!-- unescape +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> | ||
| 271 | |||
| 272 | <p class=name id="unescape"> | ||
| 273 | socket.url.<b>unescape(</b>content<b>)</b> | ||
| 274 | </p> | ||
| 275 | |||
| 276 | <p class=description> | ||
| 277 | Removes the URL escaping content coding from a string. | ||
| 278 | </p> | ||
| 279 | |||
| 280 | <p class=parameters> | ||
| 281 | <tt>Content</tt> is the string to be decoded. | ||
| 282 | </p> | ||
| 283 | |||
| 284 | <p class=return> | ||
| 285 | The function returns the decoded string. | ||
| 286 | </p> | ||
| 287 | |||
| 244 | <!-- footer +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> | 288 | <!-- footer +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> |
| 245 | 289 | ||
| 246 | <div class=footer> | 290 | <div class=footer> |
