Files
mitmproxy/examples

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