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

Method reason_phrase

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

Source from the content-addressed store, hash-verified

618
619 @property
620 def reason_phrase(self) -> str:
621 try:
622 reason_phrase: bytes = self.extensions["reason_phrase"]
623 except KeyError:
624 return codes.get_reason_phrase(self.status_code)
625 else:
626 return reason_phrase.decode("ascii", errors="ignore")
627
628 @property
629 def url(self) -> URL:

Callers

nothing calls this directly

Calls 2

get_reason_phraseMethod · 0.80
decodeMethod · 0.45

Tested by

no test coverage detected