Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Read and write the HTTP/1.1 transfer-encoding formats. Currently supported are chunked
and content-length
.
include sig ... end
val encoding_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> encoding
val sexp_of_encoding : encoding -> Ppx_sexp_conv_lib.Sexp.t
include sig ... end
val chunk_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> chunk
val sexp_of_chunk : chunk -> Ppx_sexp_conv_lib.Sexp.t
val string_of_encoding : encoding -> string
Convert 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.