noc.core.script.http.middleware.jsonrequestid

Module Contents

class noc.core.script.http.middleware.jsonrequestid.JSONRequestIdMiddleware(http, request_id_param='request_id')

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

Append request_id:XXXXX to requests. Request id is automatically increased with each next request. request_id name may be changed via request_id_param

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