resurfaceio / logger-python

Log API calls with Python
Apache License 2.0
22 stars 6 forks source link

Requests client middleware #22

Closed RobDickinson closed 3 years ago

RobDickinson commented 3 years ago

Research and create middleware that works from the client side, to record calls made to a remote API.

# standard session
s = requests.Session()
s.get('https://httpbin.org/cookies/set/sessioncookie/123456789')

# logging session
s = resurface.Session(url, rules)
s.get('https://httpbin.org/cookies/set/sessioncookie/123456789')