Class ProtoHttpUri

Namespace
ProtoTest.Http
Assembly
ProtoTest.Http.dll

Platform-independent HTTP URI classification shared by protocol integrations.

public static class ProtoHttpUri
Inheritance
ProtoHttpUri
Inherited Members

Methods

HasExplicitScheme(string)

Returns whether the value starts with a URI scheme that may contain a colon, such as https:// or file:///. A route segment that merely contains a colon, such as orders:search, is not a scheme: an explicit scheme always has a :// separator.

public static bool HasExplicitScheme(string value)

Parameters

value string

Returns

bool

IsHttpUri(Uri)

Returns whether uri uses the HTTP or HTTPS scheme.

public static bool IsHttpUri(Uri uri)

Parameters

uri Uri

Returns

bool

TryCreateAbsoluteHttpUri(string, out Uri?)

public static bool TryCreateAbsoluteHttpUri(string value, out Uri? uri)

Parameters

value string
uri Uri

Returns

bool