Cohttp.TransferRead and write the HTTP/1.1 transfer-encoding formats. Currently supported are chunked and content-length.
type encoding = Http.Transfer.encoding = The encoding format detected from the transfer-encoding and content-length headers
val sexp_of_encoding : encoding -> Sexplib0.Sexp.tval encoding_of_sexp : Sexplib0.Sexp.t -> encodingval pp_encoding : Stdlib.Format.formatter -> encoding -> unitHuman-readable output.
val sexp_of_chunk : chunk -> Sexplib0.Sexp.tval chunk_of_sexp : Sexplib0.Sexp.t -> chunkval string_of_encoding : encoding -> stringConvert the encoding format to a human-readable string
val has_body : encoding -> [ `No | `Unknown | `Yes ]has_body encoding returns the appropriate variant that indicates whether the HTTP request or response has an associated body. It does not guess: instead Unknown is returned if there is no explicit association.