tiny.http.WebSocketCloseCode
Defined in tiny.http.
API (12)
Types and contracts
Public types and contracts.
abnormalgoing_awayinternal_errorinvalid_payloadmandatory_extensionmessage_too_bigno_statusnormalpolicy_violationprotocol_errortls_handshakeunsupported_data
Source
Source: lib/http/src/websocket.zig:532
zig
pub const WebSocketCloseCode = struct { pub const normal: u16 = 1000; pub const going_away: u16 = 1001; pub const protocol_error: u16 = 1002; pub const unsupported_data: u16 = 1003; pub const no_status: u16 = 1005; pub const abnormal: u16 = 1006; pub const invalid_payload: u16 = 1007; pub const policy_violation: u16 = 1008; pub const message_too_big: u16 = 1009; pub const mandatory_extension: u16 = 1010; pub const internal_error: u16 = 1011; pub const tls_handshake: u16 = 1015;};Source: lib/http/src/root.zig:66
zig
pub const WebSocketCloseCode = websocket.WebSocketCloseCode;Audit
| Definitions | 13 |
|---|---|
| Public names | 13 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |