(self)
| 298 | |
| 299 | # https://developer.mozilla.org/fr/docs/Web/HTTP/Headers/Transfer-Encoding |
| 300 | def _get_encodings(self): |
| 301 | encodings = [] |
| 302 | if isinstance(self, HTTPResponse): |
| 303 | if self.Transfer_Encoding: |
| 304 | encodings += [ |
| 305 | plain_str(x).strip().lower() |
| 306 | for x in plain_str(self.Transfer_Encoding).split(",") |
| 307 | ] |
| 308 | if self.Content_Encoding: |
| 309 | encodings += [ |
| 310 | plain_str(x).strip().lower() |
| 311 | for x in plain_str(self.Content_Encoding).split(",") |
| 312 | ] |
| 313 | return encodings |
| 314 | |
| 315 | def hashret(self): |
| 316 | return b"HTTP1" |
no test coverage detected