MCPcopy
hub / github.com/pallets/werkzeug / read

Method read

src/werkzeug/middleware/lint.py:54–69  ·  view source on GitHub ↗
(self, *args: t.Any)

Source from the content-addressed store, hash-verified

52 self._stream = stream
53
54 def read(self, *args: t.Any) -> bytes:
55 if len(args) == 0:
56 warn(
57 "WSGI does not guarantee an EOF marker on the input stream, thus making"
58 " calls to 'wsgi.input.read()' unsafe. Conforming servers may never"
59 " return from this call.",
60 WSGIWarning,
61 stacklevel=2,
62 )
63 elif len(args) != 1:
64 warn(
65 "Too many parameters passed to 'wsgi.input.read()'.",
66 WSGIWarning,
67 stacklevel=2,
68 )
69 return self._stream.read(*args)
70
71 def readline(self, *args: t.Any) -> bytes:
72 if len(args) == 0:

Callers 9

encode_multipartFunction · 0.45
__init__Method · 0.45
__next__Method · 0.45
readintoMethod · 0.45
readallMethod · 0.45
_parse_urlencodedMethod · 0.45
readintoMethod · 0.45
executeMethod · 0.45
get_dataMethod · 0.45

Calls

no outgoing calls

Tested by 2

encode_multipartFunction · 0.36
__init__Method · 0.36