urlcode

Last updated 23 days ago

Support functions for the CGILua compatibility module for encoding and decoding URL components in accordance with RFC 3986.

API Overview

API Documentation

Functions

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

escape

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

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

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

unescape

Signature

hs.httpserver.hsminweb.cgilua.urlcode.unescape(string) -> string

Type

Function

Description

Removes any URL encoding in the provided string.

Parameters

Returns