(self, *args: t.Any)
| 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: |
no outgoing calls