simple proxy to log request and response, and provide some debug functions such as modify header and body