MCPcopy Index your code
hub / github.com/RustPython/RustPython / isclosed

Method isclosed

Lib/http/client.py:458–466  ·  view source on GitHub ↗

True if the connection is closed.

(self)

Source from the content-addressed store, hash-verified

456 # End of "raw stream" methods
457
458 def isclosed(self):
459 """True if the connection is closed."""
460 # NOTE: it is possible that we will not ever call self.close(). This
461 # case occurs when will_close is TRUE, length is None, and we
462 # read up to the last byte, but NOT past it.
463 #
464 # IMPLIES: if will_close is FALSE, then self.close() will ALWAYS be
465 # called, meaning self.isclosed() is meaningful.
466 return self.fp is None
467
468 def read(self, amt=None):
469 """Read and return the response body, or up to the next amt bytes."""

Calls

no outgoing calls