MCPcopy
hub / github.com/mitmproxy/mitmproxy / method

Method method

mitmproxy/http.py:658–662  ·  view source on GitHub ↗

HTTP request method, e.g. "GET".

(self)

Source from the content-addressed store, hash-verified

656
657 @property
658 def method(self) -> str:
659 """
660 HTTP request method, e.g. "GET".
661 """
662 return self.data.method.decode("utf-8", "surrogateescape").upper()
663
664 @method.setter
665 def method(self, val: str | bytes) -> None:

Callers

nothing calls this directly

Calls 2

always_bytesFunction · 0.90
decodeMethod · 0.45

Tested by

no test coverage detected