Webserver-related objects

class WebRequest

Represent a HTTP query, whose attributes are read-only.

body

The body of this query, as a string.

getvars

The GET parameters of this query, as a table whose keys and values are strings.

headers

The HTTP headers of this query, as a table whose keys and values are strings.

method

The method of this query, as a string.

path

The path of this query, as a string.

postvars

The POST parameters of this query, as a table whose keys and values are strings.

version

The HTTP version of this query, as an integer.

class WebResponse

Represent a HTTP response.

body

The body of this response, as a string.

headers

The HTTP headers of this response, as a table whose keys and values are strings.

status

The HTTP status code of this response, as an integer.