MCPcopy Create free account
hub / github.com/EasyIME/PIME / __init__

Method __init__

python/python3/tornado/httpclient.py:711–720  ·  view source on GitHub ↗
(
        self,
        code: int,
        message: Optional[str] = None,
        response: Optional[HTTPResponse] = None,
    )

Source from the content-addressed store, hash-verified

709 """
710
711 def __init__(
712 self,
713 code: int,
714 message: Optional[str] = None,
715 response: Optional[HTTPResponse] = None,
716 ) -> None:
717 self.code = code
718 self.message = message or httputil.responses.get(code, "Unknown")
719 self.response = response
720 super().__init__(code, message, response)
721
722 def __str__(self) -> str:
723 return "HTTP %d: %s" % (self.code, self.message)

Callers

nothing calls this directly

Calls 2

getMethod · 0.45
__init__Method · 0.45

Tested by

no test coverage detected