clink.handler¶
-
class
clink.handler.err_http.
ErrorHttpHandler
[source]¶ Catch HTTP error and make response message correspond with error
-
class
clink.handler.err_log.
ErrorLogHandler
(app_conf)[source]¶ Catch error, write information to file at /var/tmp/<app-name>/error.log
-
class
clink.handler.recv.
RecvHandler
[source]¶ Receive HTTP message, construct an isinstance of Request
Parameters: - req (clink.Request) –
- res (clink.Response) –
- env (dict) –
-
class
clink.handler.req_json.
ReqJsonHandler
[source]¶ Map JSON string from body message to Python object
-
class
clink.handler.req_log.
ReqLogHandler
(app_conf)[source]¶ Catch HTTP request, write information of request to file in /var/tmp/<app-name>/request.log
-
class
clink.handler.req_url_encode.
ReqUrlEncodeHandler
[source]¶ Map URL Encode string to Python object