package websocketaf

  1. Overview
  2. Docs
type t
val is_fin : t -> bool
val rsv : t -> int
val opcode : t -> Opcode.t
val has_mask : t -> bool
val mask : t -> int32 option
val mask_exn : t -> int32
val mask_inplace : t -> unit
val unmask_inplace : t -> unit
val length : t -> int
val payload_length : t -> int
val with_payload : t -> f:(Bigstringaf.t -> off:int -> len:int -> 'a) -> 'a
val copy_payload : t -> Bigstringaf.t
val copy_payload_bytes : t -> Bytes.t
val parse : t Angstrom.t
val serialize_control : ?mask:int32 -> Faraday.t -> opcode:Opcode.standard_control -> unit
val schedule_serialize : ?mask:int32 -> Faraday.t -> is_fin:bool -> opcode:Opcode.t -> payload:Bigstringaf.t -> off:int -> len:int -> unit
val schedule_serialize_bytes : ?mask:int32 -> Faraday.t -> is_fin:bool -> opcode:Opcode.t -> payload:Bytes.t -> off:int -> len:int -> unit
val serialize_bytes : ?mask:int32 -> Faraday.t -> is_fin:bool -> opcode:Opcode.t -> payload:Bytes.t -> off:int -> len:int -> unit
OCaml

Innovation. Community. Security.