Support functions for the CGILua compatibility module for encoding and decoding URL components in accordance with RFC 3986.
Signature | hs.httpserver.hsminweb.cgilua.urlcode.encodetable(table) -> string |
---|---|
Type | Function |
Description |
Encodes the table of key-value pairs as a query string suitable for inclusion in a URL. |
Parameters |
|
Returns |
|
Notes |
|
Source | extensions/httpserver/cgilua_compatibility_functions.lua line 462 |
Signature | hs.httpserver.hsminweb.cgilua.urlcode.escape(string) -> string |
---|---|
Type | Function |
Description |
URL encodes the provided string, making it safe as a component within a URL. |
Parameters |
|
Returns |
|
Notes |
|
Source | extensions/httpserver/cgilua_compatibility_functions.lua line 432 |
Signature | hs.httpserver.hsminweb.cgilua.urlcode.insertfield(table, key, value) -> none |
---|---|
Type | Function |
Description |
Inserts the specified key and value into the table of key-value pairs. |
Parameters |
|
Returns |
|
Notes |
|
Source | extensions/httpserver/cgilua_compatibility_functions.lua line 486 |
Signature | hs.httpserver.hsminweb.cgilua.urlcode.parsequery(query, table) -> none |
---|---|
Type | Function |
Description |
Parse the query string and store the key-value pairs in the provided table. |
Parameters |
|
Returns |
|
Notes |
|
Source | extensions/httpserver/cgilua_compatibility_functions.lua line 517 |
Signature | hs.httpserver.hsminweb.cgilua.urlcode.unescape(string) -> string |
---|---|
Type | Function |
Description |
Removes any URL encoding in the provided string. |
Parameters |
|
Returns |
|
Source | extensions/httpserver/cgilua_compatibility_functions.lua line 448 |
© 2014–2017 Hammerspoon contributors
Licensed under the MIT License.
https://www.hammerspoon.org/docs/hs.httpserver.hsminweb.cgilua.urlcode.html