1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
|
.. _WebObjects:
Webserver-related objects
=========================
.. class:: WebRequest
Represent a HTTP query, whose attributes are read-only.
.. attribute:: WebRequest.body
The body of this query, as a string.
.. attribute:: WebRequest.getvars
The GET parameters of this query, as a table whose keys and values are strings.
.. attribute:: WebRequest.headers
The HTTP headers of this query, as a table whose keys and values are strings.
.. attribute:: WebRequest.method
The method of this query, as a string.
.. attribute:: WebRequest.path
The path of this query, as a string.
.. attribute:: WebRequest.postvars
The POST parameters of this query, as a table whose keys and values are strings.
.. attribute:: WebRequest.version
The HTTP version of this query, as an integer.
.. class:: WebResponse
Represent a HTTP response.
.. attribute:: WebResponse.body
The body of this response, as a string.
.. attribute:: WebResponse.headers
The HTTP headers of this response, as a table whose keys and values are strings.
.. attribute:: WebResponse.status
The HTTP status code of this response, as an integer.
|