UrlHostParts
This class represents the individual components of a URL's host section, including the username, password, host address, and port number. It serves as a structured container for managing and accessing authentication credentials and network location details within a URL.
Attributes
| Attribute | Type | Description |
|---|---|---|
| username | string | The authentication username extracted from the URL's user information component. |
| password | string | The authentication password associated with the username in the URL's user information component. |
| host | string | The domain name or IP address identifying the network host in the URL. |
| port | integer | The explicit network port number specified in the URL, constrained to a 16-bit unsigned integer. |
Constructor
Signature
def UrlHostParts(
username: Optional[str] = None,
password: Optional[str] = None,
host: Optional[str] = None,
port: Optional[int] = None
) - > null
Parameters
| Name | Type | Description |
|---|---|---|
| username | Optional[str] = None | The username component of the URL host. |
| password | Optional[str] = None | The password component of the URL host. |
| host | Optional[str] = None | The host name or IP address. |
| port | Optional[int] = None | The port number. |
Signature
def UrlHostParts(
username: Optional[str] = None,
password: Optional[str] = None,
host: Optional[str] = None,
port: Optional[int] = None
) - > null
Parameters
| Name | Type | Description |
|---|---|---|
| username | Optional[str] = None | The authentication username extracted from the URL authority section |
| password | Optional[str] = None | The authentication password associated with the username |
| host | Optional[str] = None | The domain name or IP address of the target server |
| port | Optional[int] = None | The network port number, constrained to the 0-65535 range |