MCPcopy
hub / github.com/psf/requests / prepare_method

Method prepare_method

src/requests/models.py:465–469  ·  view source on GitHub ↗

Prepares the given HTTP method.

(self, method: str | None)

Source from the content-addressed store, hash-verified

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:

Callers 1

prepareMethod · 0.95

Calls 1

to_native_stringFunction · 0.85

Tested by

no test coverage detected