Module Http.Transfer

Read and write the HTTP/1.1 transfer-encoding formats. Currently supported are chunked and content-length.

type encoding =
  1. | Chunked
    (*

    dynamic chunked encoding

    *)
  2. | Fixed of int64
    (*

    fixed size content

    *)
  3. | Unknown
    (*

    unknown body size, which leads to best-effort

    *)

The encoding format detected from the transfer-encoding and content-length headers

val compare_encoding : encoding -> encoding -> int
module Private : sig ... end