Version 0.2.6
This commit is contained in:
parent
10f30bfb47
commit
aa81432556
21 changed files with 304 additions and 96 deletions
17
pappyproxy/templates/intmacro.py.template
Normal file
17
pappyproxy/templates/intmacro.py.template
Normal file
|
@ -0,0 +1,17 @@
|
|||
from pappyproxy.session import Session
|
||||
|
||||
MACRO_NAME = '{{macro_name}}'
|
||||
SHORT_NAME = '{{short_name}}'
|
||||
runargs = []
|
||||
|
||||
def init(args):
|
||||
global runargs
|
||||
runargs = args
|
||||
|
||||
def mangle_request(request):
|
||||
global runargs
|
||||
return request
|
||||
|
||||
def mangle_response(request):
|
||||
global runargs
|
||||
return request.response
|
Loading…
Add table
Add a link
Reference in a new issue