Go to the latest version of this document.

# ``twisted`.`internet`.`_resolver`.`HostResolution``

class documentation

`class HostResolution: (source)`

Constructor: `HostResolution(name)`

Implements interfaces: `twisted.internet.interfaces.IHostResolution`

View In Hierarchy

The in-progress resolution of a given hostname.

Method | `__init__` | Create a `HostResolution` with the given name.
Method | `cancel` | Stop the hostname resolution in progress.
Instance Variable | `name` | `unicode`; the name of the host being resolved.

def __init__(self, name: `str`): (source)

Create a `HostResolution` with the given name.

def cancel(self) -> `NoReturn`: (source)
from `twisted.internet.interfaces.IHostResolution`

Stop the hostname resolution in progress.

name = (source)
from `twisted.internet.interfaces.IHostResolution`

`unicode`; the name of the host being resolved.