Prepares the given HTTP method.
(self, method: str | None)
| 463 | return p |
| 464 | |
| 465 | def prepare_method(self, method: str | None) -> None: |
| 466 | """Prepares the given HTTP method.""" |
| 467 | self.method = method |
| 468 | if self.method is not None: |
| 469 | self.method = to_native_string(self.method.upper()) |
| 470 | |
| 471 | @staticmethod |
| 472 | def _get_idna_encoded_host(host: str) -> str: |
no test coverage detected