MCPcopy
hub / github.com/django/django / readline

Method readline

django/core/handlers/wsgi.py:42–53  ·  view source on GitHub ↗
(self, size=-1, /)

Source from the content-addressed store, hash-verified

40 return data
41
42 def readline(self, size=-1, /):
43 _pos = self._pos
44 limit = self.limit
45 if _pos >= limit:
46 return b""
47 if size == -1 or size is None:
48 size = limit - _pos
49 else:
50 size = min(size, limit - _pos)
51 line = self._readline(size)
52 self._pos += len(line)
53 return line
54
55
56class WSGIRequest(HttpRequest):

Callers 2

test_limited_streamMethod · 0.95
handle_one_requestMethod · 0.45

Calls

no outgoing calls

Tested by 1

test_limited_streamMethod · 0.76