enum

HTTP::WebSocket::CloseCode

Inherits Enum / Comparable / Value / Object

Constants

NormalClosure = 1000
GoingAway = 1001
ProtocolError = 1002
UnsupportedData = 1003
NoStatusReceived = 1005
AbnormalClosure = 1006
InvalidFramePayloadData = 1007
PolicyViolation = 1008
MessageTooBig = 1009
MandatoryExtension = 1010
InternalServerError = 1011
ServiceRestart = 1012
TryAgainLater = 1013
BadGateway = 1014
TLSHandshake = 1015

Constructors

new(close_code : Int32) : self

Create a new instance with the given close code, or raise an error if the close code given is not inside 0..4999.

Source

Instance methods

abnormal_closure?

Returns true if this enum value equals AbnormalClosure

Source
bad_gateway?

Returns true if this enum value equals BadGateway

Source
going_away?

Returns true if this enum value equals GoingAway

Source
internal_server_error?

Returns true if this enum value equals InternalServerError

Source
invalid_frame_payload_data?

Returns true if this enum value equals InvalidFramePayloadData

Source
mandatory_extension?

Returns true if this enum value equals MandatoryExtension

Source
message_too_big?

Returns true if this enum value equals MessageTooBig

Source
no_status_received?

Returns true if this enum value equals NoStatusReceived

Source
normal_closure?

Returns true if this enum value equals NormalClosure

Source
policy_violation?

Returns true if this enum value equals PolicyViolation

Source
protocol_error?

Returns true if this enum value equals ProtocolError

Source
service_restart?

Returns true if this enum value equals ServiceRestart

Source
tls_handshake?

Returns true if this enum value equals TLSHandshake

Source
try_again_later?

Returns true if this enum value equals TryAgainLater

Source
unsupported_data?

Returns true if this enum value equals UnsupportedData

Source