MCPcopy
hub / github.com/encode/httpx / http_version

Method http_version

httpx/_models.py:611–617  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

609
610 @property
611 def http_version(self) -> str:
612 try:
613 http_version: bytes = self.extensions["http_version"]
614 except KeyError:
615 return "HTTP/1.1"
616 else:
617 return http_version.decode("ascii", errors="ignore")
618
619 @property
620 def reason_phrase(self) -> str:

Callers

nothing calls this directly

Calls 1

decodeMethod · 0.45

Tested by

no test coverage detected