noc.core.script.http.middleware.jsonsession

Module Contents

class noc.core.script.http.middleware.jsonsession.JSONSessionMiddleware(http, session_param='session_id')

Bases: noc.core.script.http.middleware.base.BaseMiddleware

Append session_id: XXXXX to body. session_id name may be changed via session_param

name = jsonsession
process_post(self, url, body, headers)
process_put(self, url, body, headers)