clink.handler

class clink.handler.err_http.ErrorHttpHandler[source]

Catch HTTP error and make response message correspond with error

handle(req, res, e)[source]
class clink.handler.err_log.ErrorLogHandler(app_conf)[source]

Catch error, write information to file at /var/tmp/<app-name>/error.log

handle(req, res, e)[source]
class clink.handler.recv.RecvHandler[source]

Receive HTTP message, construct an isinstance of Request

Parameters:
  • req (clink.Request) –
  • res (clink.Response) –
  • env (dict) –
handle(req, res, env)[source]
class clink.handler.req_json.ReqJsonHandler[source]

Map JSON string from body message to Python object

handle(req, res)[source]
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

handle(req, res)[source]
class clink.handler.req_url_encode.ReqUrlEncodeHandler[source]

Map URL Encode string to Python object

handle(req, res)[source]
class clink.handler.res_cors.ResCorsHandler[source]

Inform client to know that server allow CORS

handle(req, res)[source]
class clink.handler.res_json.ResJsonHandler[source]

Serialize Python object to JSON string

handle(req, res)[source]
class clink.handler.send.SendHandler[source]

Send response message to client

handle(req, res, wsgi_send)[source]
class clink.handler.dflow_err.DflowErrorHandler[source]

Catch Data Flow error and make response message correspond with error

handle(req, res, e)[source]