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`.`client`.`_FakeUrllib2Request``

class documentation

`class _FakeUrllib2Request: (source)`

View In Hierarchy

A fake `urllib2.Request` object for `cookielib` to work with.

See Also
http://docs.python.org/library/urllib2.html#request-objects
Present Since
11.1

Method | `__init__` | Create a fake Urllib2 request.
Method | `add_unredirected_header` | Undocumented
Method | `get_full_url` | Undocumented
Method | `get_header` | Undocumented
Method | `get_host` | Undocumented
Method | `get_type` | Undocumented
Method | `has_header` | Undocumented
Method | `is_unverifiable` | Undocumented
Instance Variable | `headers` | Request headers.
Instance Variable | `host` | The host[:port] of the URI.
Instance Variable | `origin_req_host` | Undocumented
Instance Variable | `type` | The scheme of the URI.
Instance Variable | `unverifiable` | Undocumented
Instance Variable | `uri` | Request URI.

def __init__(self, uri): (source)

Create a fake Urllib2 request.

Parameters
uri:`bytes` | Request URI.

def add_unredirected_header(self, name, value): (source)

Undocumented

def get_full_url(self): (source)

Undocumented

def get_header(self, name, default=None): (source)

Undocumented

def get_host(self): (source)

Undocumented

def get_type(self): (source)

Undocumented

def has_header(self, header): (source)

Undocumented

def is_unverifiable(self): (source)

Undocumented

headers: `twisted.web.http_headers.Headers` = (source)

Request headers.

host: native `str` = (source)

The host[:port] of the URI.

origin_req_host = (source)

Undocumented

type: native `str` = (source)

The scheme of the URI.

unverifiable = (source)

Undocumented

uri: native `str` = (source)

Request URI.