Print request info in cache print
@@ -54,10 +54,10 @@ def inspect_url(session: CachedSession, url: str):
for m in matches:
content_type = m.headers["Content-Type"]
if content_type.startswith("text/xml"):
- print(f"<!-- {m.url} -->")
+ print(f"<!-- {m} -->")
print(render_xml(m.content))
elif content_type.startswith("application/json"):
- print(f"// {m.url}")
+ print(f"// {m}")
print(render_json(m.content))
else:
print(f"# {content_type}: {m.url}")
