Skip to content

Commit

Permalink
print headers
Browse files Browse the repository at this point in the history
  • Loading branch information
jschlyter committed Nov 2, 2023
1 parent 5e36121 commit 658c87d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions aggrec/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,14 +123,17 @@ def main() -> None:
include_alg=True,
)

print(req.headers)
for k, v in req.headers.items():
print(f"{k}: {v}")
print("")

resp = session.send(req)
resp.raise_for_status()

print(resp)
print(resp.headers)
for k, v in resp.headers.items():
print(f"{k}: {v}")
print("")
print(resp.text)


Expand Down

0 comments on commit 658c87d

Please sign in to comment.