Go to the latest version of this document.
search in docstrings

Search bar offers the following options:

- Term presence. The below example searches for documents that must contain “foo”, might contain “bar” and must not contain “baz”: `+foo bar -baz`
- Wildcards. The below example searches for documents with words beginning with “foo”: `foo*`
- Search in specific fields. The following search matches all objects in "twisted.mail" that matches “search”: `+qname:twisted.mail.* +search`

  Possible fields: 'name', 'qname' (fully qualified name), 'docstring', and 'kind'. Last two fields are only applicable if "search in docstrings" is enabled.

- Fuzzy matches. The following search matches all documents that have a word within 1 edit distance of “foo”: `foo~1`

Results provided by Lunr.js

# ``twisted`.`web`.`wsgi`.`_InputStream``

class documentation

`class _InputStream: (source)`

View In Hierarchy

File-like object instances of which are used as the value for the `'wsgi.input'` key in the `environ` dictionary passed to the application object.

This only exists to make the handling of `readline(-1)` consistent across different possible underlying file-like object implementations. The other supported methods pass through directly to the wrapped object.

Method | `__init__` | Initialize the instance.
Method | `__iter__` | Pass through to the underlying `__iter__`.
Method | `read` | Pass through to the underlying `read`.
Method | `readline` | Pass through to the underlying `readline`, with a size of `-1` replaced with a size of `None`.
Method | `readlines` | Pass through to the underlying `readlines`.
Instance Variable | `_wrapped` | Undocumented

def __init__(self, input): (source)

Initialize the instance.

This is called in the I/O thread, not a WSGI application thread.

def __iter__(self): (source)

Pass through to the underlying `__iter__`.

This is called in a WSGI application thread, not the I/O thread.

def read(self, size=None): (source)

Pass through to the underlying `read`.

This is called in a WSGI application thread, not the I/O thread.

def readline(self, size=None): (source)

Pass through to the underlying `readline`, with a size of `-1` replaced with a size of `None`.

This is called in a WSGI application thread, not the I/O thread.

def readlines(self, size=None): (source)

Pass through to the underlying `readlines`.

This is called in a WSGI application thread, not the I/O thread.

_wrapped = (source)

Undocumented