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
Data
The pseudo Data protocol.
public static readonly string Data
Field Value
File
The pseudo File protocol.
public static readonly string File
Field Value
Ftp
The File Transfer Protocol.
public static readonly string Ftp
Field Value
Gopher
The legacy gopher protocol.
public static readonly string Gopher
Field Value
Http
The Hypertext Transfer Protocol.
public static readonly string Http
Field Value
Https
The Hypertext Transfer Protocol Secure.
public static readonly string Https
Field Value
JavaScript
The pseudo JavaScript protocol.
public static readonly string JavaScript
Field Value
Mailto
The pseudo Mailto protocol.
public static readonly string Mailto
Field Value
Ssh
The Secure Shell protocol.
public static readonly string Ssh
Field Value
Telnet
The Telnet protocol.
public static readonly string Telnet
Field Value
Ws
The WebSocket protocol.
public static readonly string Ws
Field Value
Wss
The WebSocket Secure protocol.
public static readonly string Wss
Field Value
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
stringThe 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
stringThe protocol to examine.
Returns
- bool
True if the protocol is a relative scheme, otherwise false.