noc.core.script.http.middleware.basicauth

Module Contents

class noc.core.script.http.middleware.basicauth.BasicAuthMiddeware(http, user=None, password=None)

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

Append HTTP Basic authorisation headers

name = basicauth
process_request(self, url, body, headers)