mitmproxy/examples
..
add_header.py
flowbasic
README
stickycookies
stub.py
upsidedownternet.py

add_header.py   Simple script that just adds a header to every request.
stub.py         Script stub with a method definition for every event. 
stickycookies   An example of writing a custom proxy with libmproxy