package cohttp-eio

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t =
  1. | Fixed of string
  2. | Chunked of chunk_writer
  3. | Custom of Eio.Buf_write.t -> unit
  4. | Empty
and chunk_writer = {
  1. body_writer : (chunk -> unit) -> unit;
  2. trailer_writer : (Http.Header.t -> unit) -> unit;
}
and chunk =
  1. | Chunk of chunk_body
  2. | Last_chunk of chunk_extension list

Chunk encapsulates HTTP/1.1 chunk transfer encoding data structures. https://datatracker.ietf.org/doc/html/rfc7230#section-4.1

and chunk_body = {
  1. size : int;
  2. data : string;
  3. extensions : chunk_extension list;
}
and chunk_extension = {
  1. name : string;
  2. value : string option;
}
val pp_chunk_extension : Stdlib.Format.formatter -> chunk_extension list -> unit
val pp_chunk : Stdlib.Format.formatter -> chunk -> unit
OCaml

Innovation. Community. Security.