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

Method peek

Lib/http/client.py:694–701  ·  view source on GitHub ↗
(self, n=-1)

Source from the content-addressed store, hash-verified

692 return result
693
694 def peek(self, n=-1):
695 # Having this enables IOBase.readline() to read more than one
696 # byte at a time
697 if self.fp is None or self._method == "HEAD":
698 return b""
699 if self.chunked:
700 return self._peek_chunked(n)
701 return self.fp.peek(n)
702
703 def readline(self, limit=-1):
704 if self.fp is None or self._method == "HEAD":

Callers 1

_peek_chunkedMethod · 0.45

Calls 1

_peek_chunkedMethod · 0.95

Tested by

no test coverage detected