File: _utils.py

package info (click to toggle)
python-treq 25.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 596 kB
  • sloc: python: 4,832; makefile: 130
file content (7 lines) | stat: -rw-r--r-- 165 bytes parent folder | download
1
2
3
4
5
6
7
import treq


async def print_response(response):
    print(response.code, response.phrase)
    print(response.headers)
    print(await treq.text_content(response))