AngleSharp by AngleSharp

<PackageReference Include="AngleSharp" Version="1.3.0" />

.NET API 960,512 bytes

 Url

public sealed class Url : IEquatable<Url>
Represents an Url class according to RFC3986. This is the base for all internal Url manipulation. Specification for the API used from https://url.spec.whatwg.org/#api.
public string Data { get; }

Gets the additional stored data of the URL. This is data that could not be assigned.

public string Fragment { get; set; }

Gets or sets the fragment, e.g., "first-section".

public string Hash { get; set; }

Gets or sets the hash, e.g., "#first-section".

public string Host { get; set; }

Gets or sets the host, e.g. "localhost:8800" or "www.w3.org".

public string HostName { get; set; }

Gets or sets the host name, e.g. "localhost" or "www.w3.org".

public string Href { get; set; }

Gets or sets the hyper reference, i.e. the full URL.

public bool IsAbsolute { get; }

Gets if the stored url is absolute.

public bool IsInvalid { get; }

Gets if the URL parsing resulted in an error.

public bool IsRelative { get; }

Gets if the stored url is relative.

public string Origin { get; }

Gets the origin of the stored url.

public string Password { get; set; }

Gets or sets the password for authorization.

public string Path { get; set; }

Gets or sets the path, e.g. "mypath".

public string PathName { get; set; }

Gets or sets the pathname, e.g. "/mypath".

public string Port { get; set; }

Gets or sets the port, e.g. "8800".

public string Protocol { get; set; }

Gets or sets the protocol, e.g. "http:".

public string Query { get; set; }

Gets or sets the query part, e.g., "foo=bar".

public string Scheme { get; set; }

Gets or sets the scheme, e.g. "http".

public string Search { get; set; }

Gets or sets the search part, e.g., "?foo=bar".

public UrlSearchParams SearchParams { get; }

Obtains an advanced view on the provided query parameter.

public string UserName { get; set; }

Gets or sets the username for authorization.

public Url(string url, string baseAddress = null)

Creates a new Url from the given string.

public Url(string address)

Creates a new Url from the given string.

public Url(Url baseAddress, string relativeAddress)

Creates a new absolute Url from the relative Url with the given base address.

public Url(Url address)

Creates a new Url by copying the other Url.

public static Url Convert(Uri uri)

Creates an Url from an url transported in an Uri.

public static Url Create(string address)

Creates an Url from an absolute url transported in a string.

public static Uri op_Implicit(Url value)

Converts the given Url to an Uri.

public bool Equals(Url other)

Determines whether the specified url is equal to the current object.

public string ToJson()

Serializes the URL string to a JSON compatible string representation.