(
http_version: bytes,
status: int,
reason_phrase: bytes | None,
headers: list[tuple[bytes, bytes]],
)
| 154 | |
| 155 | |
| 156 | def print_response_headers( |
| 157 | http_version: bytes, |
| 158 | status: int, |
| 159 | reason_phrase: bytes | None, |
| 160 | headers: list[tuple[bytes, bytes]], |
| 161 | ) -> None: |
| 162 | console = rich.console.Console() |
| 163 | http_text = format_response_headers(http_version, status, reason_phrase, headers) |
| 164 | syntax = rich.syntax.Syntax(http_text, "http", theme="ansi_dark", word_wrap=True) |
| 165 | console.print(syntax) |
| 166 | syntax = rich.syntax.Syntax("", "http", theme="ansi_dark", word_wrap=True) |
| 167 | console.print(syntax) |
| 168 | |
| 169 | |
| 170 | def print_response(response: Response) -> None: |
no test coverage detected