Takes a header key (i.e., "Host" in "Host: www.google.com", and returns a stripped representation of it
(name)
| 230 | |
| 231 | |
| 232 | def _strip_header_name(name): |
| 233 | """Takes a header key (i.e., "Host" in "Host: www.google.com", |
| 234 | and returns a stripped representation of it |
| 235 | """ |
| 236 | return plain_str(name.strip()).replace("-", "_") |
| 237 | |
| 238 | |
| 239 | def _header_line(name, val): |
no test coverage detected
searching dependent graphs…