tiny.http.Opcode
Defined in tiny.http.
API (8)
Actions
Public operations.
Fields and members
Public fields and members.
Source
Source: lib/http/src/websocket.zig:219
zig
pub const Opcode = enum(u4) { continuation = 0x0, text = 0x1, binary = 0x2, close = 0x8, ping = 0x9, pong = 0xA, pub fn fromWire(value: u8) FrameError!Opcode { return switch (value) { 0x0 => .continuation, 0x1 => .text, 0x2 => .binary, 0x8 => .close, 0x9 => .ping, 0xA => .pong, else => FrameError.InvalidOpcode, }; } pub fn isControl(self: Opcode) bool { return @backingInt(self) >= 0x8; }};Source: lib/http/src/root.zig:71
zig
pub const Opcode = websocket.Opcode;Audit
| Definitions | 3 |
|---|---|
| Public names | 3 |
| Members | 6 |
| Version | 26.7.0 |
| Revision | daab053ee433 |