
## Url class

Provides an object representation of a universal identifier (URL).



**Inheritance:** [`Url`](/svg/python-net/aspose.svg/url) → 
[`DOMObject`](/svg/python-net/aspose.svg.dom/domobject)



The Url type exposes the following members:

### Constructors
| Constructor | Description |
| :- | :- |
| [__init__](/svg/python-net/aspose.svg/url/__init__/#str) | Initializes a new instance of the [`Url`](/svg/python-net/aspose.svg/url) with the specified URL. |
| [__init__](/svg/python-net/aspose.svg/url/__init__/#str-str) | Initializes a new instance of the [`Url`](/svg/python-net/aspose.svg/url) with the specified URL<br/>and base URL. |


### Properties
| Property | Description |
| :- | :- |
| [origin](/svg/python-net/aspose.svg/url/origin) | Gets a string representation for the specified URL origin. |
| [username](/svg/python-net/aspose.svg/url/username) | Gets or sets a string representation for the specified URL username. |
| [password](/svg/python-net/aspose.svg/url/password) | Gets or sets a string representation for the specified URL password. |
| [protocol](/svg/python-net/aspose.svg/url/protocol) | Gets or sets a string representation for the specified URL schema. |
| [host](/svg/python-net/aspose.svg/url/host) | Gets or sets a string representation for the specified URL host. |
| [hostname](/svg/python-net/aspose.svg/url/hostname) | Gets or sets a string representation for the specified URL hostname. |
| [port](/svg/python-net/aspose.svg/url/port) | Gets or sets a string representation for the specified URL port. |
| [pathname](/svg/python-net/aspose.svg/url/pathname) | Gets or sets a string representation for the specified URL path. |
| [search](/svg/python-net/aspose.svg/url/search) | Gets or sets a string representation for the specified URL search segment. |
| [hash](/svg/python-net/aspose.svg/url/hash) | Gets or sets a string representation for the specified URL hash segment. |
| [search_params](/svg/python-net/aspose.svg/url/search_params) | Gets an associated [`IUrlSearchParams`](/svg/python-net/aspose.svg/iurlsearchparams) object. |
| [href](/svg/python-net/aspose.svg/url/href) | Gets or sets a serialized representation for the specified URL instance. |


### Methods
| Method | Description |
| :- | :- |
| [get_platform_type](/svg/python-net/aspose.svg/url/get_platform_type/#) | This method is used to retrieve the ECMAScript object Type. |
| [to_json](/svg/python-net/aspose.svg/url/to_json/#) | Returns a String that represents this instance. |



### See Also
* module [`aspose.svg`](..)
* class [`DOMObject`](/svg/python-net/aspose.svg.dom/domobject)
* class [`IUrlSearchParams`](/svg/python-net/aspose.svg/iurlsearchparams)
* class [`Url`](/svg/python-net/aspose.svg/url)
