Table of Contents

Class ProtocolNames

Namespace
AngleSharp.Io
Assembly
AngleSharp.dll

Contains the known protocol names.

public static class ProtocolNames
Inheritance
ProtocolNames
Inherited Members

Fields

Blob

The binary large object protocol.

public static readonly string Blob

Field Value

string

Data

The pseudo Data protocol.

public static readonly string Data

Field Value

string

File

The pseudo File protocol.

public static readonly string File

Field Value

string

Ftp

The File Transfer Protocol.

public static readonly string Ftp

Field Value

string

Gopher

The legacy gopher protocol.

public static readonly string Gopher

Field Value

string

Http

The Hypertext Transfer Protocol.

public static readonly string Http

Field Value

string

Https

The Hypertext Transfer Protocol Secure.

public static readonly string Https

Field Value

string

JavaScript

The pseudo JavaScript protocol.

public static readonly string JavaScript

Field Value

string

Mailto

The pseudo Mailto protocol.

public static readonly string Mailto

Field Value

string

Ssh

The Secure Shell protocol.

public static readonly string Ssh

Field Value

string

Telnet

The Telnet protocol.

public static readonly string Telnet

Field Value

string

Ws

The WebSocket protocol.

public static readonly string Ws

Field Value

string

Wss

The WebSocket Secure protocol.

public static readonly string Wss

Field Value

string

Methods

IsOriginable(string)

Checks if the given protocol (without a colon in the end) is suitable for deriving the origin.

public static bool IsOriginable(string protocol)

Parameters

protocol string

The protocol to examine.

Returns

bool

True if the protocol is suited for origin, otherwise false.

IsRelative(string)

Checks if the given protocol (without a colon in the end) is following a relative scheme.

public static bool IsRelative(string protocol)

Parameters

protocol string

The protocol to examine.

Returns

bool

True if the protocol is a relative scheme, otherwise false.