Enumeration

enum FileHandlerType

public enum FileHandlerType {
    | DownLoad
    | UpLoad
}

Description: Sets the FileHandler mode to upload or download.

DownLoad

DownLoad

Description: Sets the FileHandler to the download mode.

UpLoad

UpLoad

Description: Sets the FileHandler to the upload mode.

enum Protocol

public enum Protocol <: Equatable<Protocol> & ToString {
    | HTTP1_0
    | HTTP1_1
    | HTTP2_0
    | UnknownProtocol(String)
}

Description: Defines the HTTP protocol type enumeration.

Parent Type:

HTTP1_0

HTTP1_0

Description: Defines HTTP1_0.

HTTP1_1

HTTP1_1

Description: Defines HTTP1_1.

HTTP2_0

HTTP2_0

Description: Defines HTTP2_0.

UnknownProtocol(String)

UnknownProtocol(String)

Description: Defines the unknown HTTP protocol.

func toString()

public override func toString(): String

Description: Obtains the HTTP protocol version string.

Returns:

  • String: HTTP protocol version string

operator func != (Protocol)

public override operator func != (that: Protocol): Bool

Description: Checks whether enumerated values are not equal.

Parameters:

  • that: Protocol: enumerated value to be compared

Returns:

  • Bool: If the current instance is not equal to that, true is returned. Otherwise, false is returned.

operator func == (Protocol)

public override operator func == (that: Protocol): Bool

Description: Checks whether enumerated values are equal.

Parameters:

  • that: Protocol: enumerated value to be compared

Returns:

  • Bool: If the current instance is equal to that, true is returned. Otherwise, false is returned.

enum WebSocketFrameType

public enum WebSocketFrameType <: Equatable<WebSocketFrameType> & ToString {
    | ContinuationWebFrame
    | TextWebFrame
    | BinaryWebFrame
    | CloseWebFrame
    | PingWebFrame
    | PongWebFrame
    | UnknownWebFrame
}

Description: Defines the enumeration type of WebSocketFrame.

Parent Type:

ContinuationWebFrame

ContinuationWebFrame

Description: Defines the unfinished fragmented frame in the WebSocket protocol.

TextWebFrame

TextWebFrame

Description: Defines the text frame in the WebSocket protocol.

BinaryWebFrame

BinaryWebFrame

Description: Defines the data frame in the WebSocket protocol.

CloseWebFrame

CloseWebFrame

Description: Defines the close frame in the WebSocket protocol.

PingWebFrame

PingWebFrame

Description: Defines the heartbeat frame in the WebSocket protocol.

PongWebFrame

PongWebFrame

Description: Defines the heartbeat frame in the WebSocket protocol.

UnknownWebFrame

UnknownWebFrame

Description: Defines unknown frames in the WebSocket protocol.

func toString()

public override func toString(): String

Description: Obtains the WebSocket frame type string.

Returns:

operator func != (WebSocketFrameType)

public override operator func != (that: WebSocketFrameType): Bool

Description: Checks whether enumerated values are not equal.

Parameters:

Returns:

  • Bool: If the current instance is not equal to that, true is returned. Otherwise, false is returned.

operator func == (WebSocketFrameType)

public override operator func == (that: WebSocketFrameType): Bool

Description: Checks whether enumerated values are equal.

Parameters:

Returns:

  • Bool: If the current instance is equal to that, true is returned. Otherwise, false is returned.