C# Class URSA.Web.Http.HttpUrl

Represents an HTTP/HTTPS url.
Inheritance: IpUrl
Afficher le fichier Open project: alien-mcl/URSA Class Usage Examples

Méthodes publiques

Méthode Description
Equals ( object obj ) : bool
GetHashCode ( ) : int
ToString ( ) : string
WithFragment ( string fragment, ExistingFragment handledAs = ExistingFragment.Throw ) : HttpUrl

Withes the fragment.

Depending on the existing fragment and the fragment being set, output may differ. Setting a null value will remove the fragment regardless the handledAs setting.

operator ( ) : HttpUrl

Adds two URLs.

One of the operands should be a relative URL.

Méthodes protégées

Méthode Description
CreateInstance ( IEnumerable segments, bool requiresParameters = false ) : IpUrl

Private Methods

Méthode Description
HttpUrl ( bool isAbsolute, string url, string scheme, string host, ushort port, string path, ParametersCollection query, string fragment ) : System
ToAbsoluteString ( string scheme, string host, ushort port, string path = null, ParametersCollection query = null, string fragment = null ) : string
ToRelativeString ( string path, ParametersCollection query = null, string fragment = null ) : string

Method Details

CreateInstance() protected méthode

protected CreateInstance ( IEnumerable segments, bool requiresParameters = false ) : IpUrl
segments IEnumerable
requiresParameters bool
Résultat IpUrl

Equals() public méthode

public Equals ( object obj ) : bool
obj object
Résultat bool

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

ToString() public méthode

public ToString ( ) : string
Résultat string

WithFragment() public méthode

Withes the fragment.
Depending on the existing fragment and the fragment being set, output may differ. Setting a null value will remove the fragment regardless the handledAs setting.
public WithFragment ( string fragment, ExistingFragment handledAs = ExistingFragment.Throw ) : HttpUrl
fragment string The fragment.
handledAs ExistingFragment Instructs on how to behave when an URL has already a fragment.
Résultat HttpUrl

operator() public static méthode

Adds two URLs.
One of the operands should be a relative URL.
public static operator ( ) : HttpUrl
Résultat HttpUrl