host property

host property

Returns the Location object’s URL’s host and port (if different from the default port for the scheme). Can be set, to navigate to the same URL with a changed host and port.

Definition:

@property
def host(self):
    ...
@host.setter
def host(self, value):
    ...

See Also