Request object¶
Request object is a dict with keys:
request :: args¶
- type:
dict
Query string arguments
request :: headers¶
- type:
tornado.netutil.HTTPHeaders
HTTP headers
request :: path¶
- type:
str
The path fragment of the requested URL
request :: method¶
- type:
str
Method of HTTP request
request :: data¶
- type:
bytes
The data submitted with HTTP request
request :: files¶
- type:
???
Files sent in request (in case of form/multipart-data).
request :: client_ip¶
- type:
str
IP address of the client sent the request
request :: done¶
- type:
bool
The flag means if the request has been performed
request :: charset¶
- type:
str
The character set which data of request are encoded with. This is the only request parameter which is set by YOU and not by the server. If you expect the data from the client would be in non UTF-8 encoding then specify correct encoding with:
server.request['charset'] = '<encoding>'