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`.`_DeprecatedToCurrentPolicyForHTTPS``

class documentation

`class _DeprecatedToCurrentPolicyForHTTPS: (source)`

Implements interfaces: `twisted.web.iweb.IPolicyForHTTPS`

View In Hierarchy

Adapt a web context factory to a normal context factory.

Method | `__init__` | Wrap a web context factory in an `IPolicyForHTTPS`.
Method | `creatorForNetloc` | Called the wrapped web context factory's `getContext` method with a hostname and port number and return the resulting context object.
Instance Variable | `_webContextFactory` | An object providing a getContext method with `hostname` and `port` arguments.

def __init__(self, webContextFactory): (source)

Wrap a web context factory in an `IPolicyForHTTPS`.

Parameters
webContextFactory:`WebClientContextFactory` (or object with a similar `getContext` method). | An object providing a getContext method with `hostname` and `port` arguments.

def creatorForNetloc(self, hostname, port): (source)
from `twisted.web.iweb.IPolicyForHTTPS`

Called the wrapped web context factory's `getContext` method with a hostname and port number and return the resulting context object.

Parameters
hostname:`bytes` | The hostname part of the URI.
port:`int` | The port part of the URI.
Returns
`IOpenSSLContextFactory` | A context factory.

_webContextFactory: `WebClientContextFactory` (or object with a similar `getContext` method). = (source)

An object providing a getContext method with `hostname` and `port` arguments.