Skip to content

Commit

Permalink
Typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
mgeeky committed Mar 1, 2016
1 parent 97955e1 commit a20acc9
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions plugins/dummy.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,26 @@

class ProxyHandler:

#
# `logger' stands for logging object instance, `params' will be
# a dictonary of input paramerers for the script. Having passed to the
# program a string like:
#
# $ ./proxy2 -p "plugins/my_plugin.py",argument1="test",argument2,argument3=test2
#
# This plugin shall receive:
#
# params = {'path':'plugins/my_plugin.py',
# 'argument1':'t,e,s,t', 'argument2':'', 'argument3':'test2'}
#
def __init__(self, logger, params):
self.logger = logger
logger.info('hello world from __init__ in ProxyHandler.')
if len(params) > 1:
logger.info('\tI have received such params: %s' % str(params))
#
# `logger' stands for logging object instance, `params' will be
# a dictonary of input paramerers for the script. Having passed to the
# program a string like:
#
# $ ./proxy2 -p "plugins/my_plugin.py",argument1="test",argument2,argument3=test2
#
# This plugin shall receive:
#
# params = {'path':'plugins/my_plugin.py',
# 'argument1':'test', 'argument2':'', 'argument3':'test2'}
#
def __init__(self, logger, params):
self.logger = logger
logger.info('hello world from __init__ in ProxyHandler.')
if len(params) > 1:
logger.info('\tI have received such params: %s' % str(params))

def request_handler(self, req, req_body):
self.logger.info('hello world from request_handler! Req: "%s"' % req.path)
def request_handler(self, req, req_body):
self.logger.info('hello world from request_handler! Req: "%s"' % req.path)

def response_handler(self, req, req_body, res, res_body):
self.logger.info('hello world from response_handler! Req: "%s"' % req.path)
def response_handler(self, req, req_body, res, res_body):
self.logger.info('hello world from response_handler! Req: "%s"' % req.path)

0 comments on commit a20acc9

Please sign in to comment.