Skip to documentation
SLOP

tiny.http.Opcode

Reference tiny.http Opcode

Defined in tiny.http.

API (8)

Actions

Public operations.

Fields and members

Public fields and members.

No direct callersNo direct callstiny.httpOpcode
Static calls · unresolved targets: unknown · external targets: unknown.

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;
Called byCallsNo direct callsFrameparseOpcodefromWire
Static calls · unresolved targets: 0 · external targets: 0.

Audit

Definitions3
Public names3
Members6
Version26.7.0
Revisiondaab053ee433