Public Member Functions | |
| def | log_message |
| def | log_error |
| def | version_string |
| def | checkAuthentication |
| def | requestAuthentication |
| def | logRequest |
| def | sendResponse |
| def | findFile |
| def | serveFile |
| def | processRequest |
| def | do_GET |
| def | do_POST |
Public Attributes | |
| command | |
Static Public Attributes | |
| tuple | logger = logging.getLogger("HTTP") |
| def webiopi.protocols.http.HTTPHandler.checkAuthentication | ( | self | ) |
Definition at line 110 of file http.py.
References webiopi.utils.crypto.encrypt().
Referenced by webiopi.protocols.http.HTTPHandler.processRequest().
| def webiopi.protocols.http.HTTPHandler.do_GET | ( | self | ) |
Definition at line 266 of file http.py.
References webiopi.protocols.http.HTTPHandler.processRequest().
| def webiopi.protocols.http.HTTPHandler.do_POST | ( | self | ) |
Definition at line 269 of file http.py.
References webiopi.protocols.http.HTTPHandler.processRequest().
| def webiopi.protocols.http.HTTPHandler.findFile | ( | self, | |
| filepath | |||
| ) |
Definition at line 157 of file http.py.
Referenced by webiopi.protocols.http.HTTPHandler.serveFile().
| def webiopi.protocols.http.HTTPHandler.log_error | ( | self, | |
| fmt, | |||
| args | |||
| ) |
| def webiopi.protocols.http.HTTPHandler.log_message | ( | self, | |
| fmt, | |||
| args | |||
| ) |
| def webiopi.protocols.http.HTTPHandler.logRequest | ( | self, | |
| code | |||
| ) |
Definition at line 137 of file http.py.
References webiopi.protocols.http.HTTPHandler.command, com.trouch.webiopi.client.devices.Device.path, and webiopi.clients.RESTAPI.path.
Referenced by webiopi.protocols.http.HTTPHandler.sendResponse(), and webiopi.protocols.http.HTTPHandler.serveFile().
| def webiopi.protocols.http.HTTPHandler.processRequest | ( | self | ) |
Definition at line 206 of file http.py.
References webiopi.protocols.http.HTTPHandler.checkAuthentication(), webiopi.protocols.http.HTTPHandler.requestAuthentication(), and webiopi.utils.types.str2bool().
Referenced by webiopi.protocols.http.HTTPHandler.do_GET(), and webiopi.protocols.http.HTTPHandler.do_POST().
| def webiopi.protocols.http.HTTPHandler.requestAuthentication | ( | self | ) |
Definition at line 131 of file http.py.
Referenced by webiopi.protocols.http.HTTPHandler.processRequest().
| def webiopi.protocols.http.HTTPHandler.sendResponse | ( | self, | |
| code, | |||
body = None, |
|||
contentType = "text/plain" |
|||
| ) |
Definition at line 140 of file http.py.
References webiopi.protocols.http.HTTPHandler.logRequest().
Referenced by webiopi.protocols.http.HTTPHandler.serveFile().
| def webiopi.protocols.http.HTTPHandler.serveFile | ( | self, | |
| relativePath | |||
| ) |
Definition at line 168 of file http.py.
References webiopi.protocols.http.HTTPHandler.findFile(), webiopi.protocols.http.HTTPHandler.logRequest(), and webiopi.protocols.http.HTTPHandler.sendResponse().
| def webiopi.protocols.http.HTTPHandler.version_string | ( | self | ) |
| webiopi.protocols.http.HTTPHandler.command |
Definition at line 237 of file http.py.
Referenced by webiopi.protocols.http.HTTPHandler.logRequest().
|
static |
1.8.8