MCPcopy Index your code
hub / github.com/mitmproxy/mitmproxy / http_version

Method http_version

mitmproxy/http.py:263–267  ·  view source on GitHub ↗

HTTP version string, for example `HTTP/1.1`.

(self)

Source from the content-addressed store, hash-verified

261
262 @property
263 def http_version(self) -> str:
264 """
265 HTTP version string, for example `HTTP/1.1`.
266 """
267 return self.data.http_version.decode("utf-8", "surrogateescape")
268
269 @http_version.setter
270 def http_version(self, http_version: str | bytes) -> None:

Callers

nothing calls this directly

Calls 1

decodeMethod · 0.45

Tested by

no test coverage detected