MCPcopy
hub / github.com/django/django / read

Method read

django/test/client.py:86–97  ·  view source on GitHub ↗
(self, size=-1, /)

Source from the content-addressed store, hash-verified

84 return self.__len
85
86 def read(self, size=-1, /):
87 if not self.read_started:
88 self.__content.seek(0)
89 self.read_started = True
90 if size == -1 or size is None:
91 size = self.__len
92 assert (
93 self.__len >= size
94 ), "Cannot read more than the available bytes from the HTTP incoming data."
95 content = self.__content.read(size)
96 self.__len -= len(content)
97 return content
98
99 def readline(self, size=-1, /):
100 if not self.read_started:

Callers 15

encode_fileFunction · 0.45
_read_logger_streamMethod · 0.45
render_to_responseMethod · 0.45
csrf_failureFunction · 0.45
get_traceback_htmlMethod · 0.45
get_traceback_textMethod · 0.45
_get_sourceMethod · 0.45
technical_404_responseFunction · 0.45
default_urlconfFunction · 0.45
directory_indexFunction · 0.45
to_pythonMethod · 0.45
get_templateMethod · 0.45

Calls 1

seekMethod · 0.80