Response_limitsResponse limits for HTTP protocol handling
Configurable limits for response body size, header count, and header length to prevent DoS attacks.
val default : tDefault limits:
val make :
?max_response_body_size:int64 ->
?max_header_size:int ->
?max_header_count:int ->
?max_decompressed_size:int64 ->
?max_compression_ratio:float ->
unit ->
tCreate custom response limits. All parameters are optional and default to the values in default.
val max_response_body_size : t -> int64Maximum response body size in bytes.
val max_header_size : t -> intMaximum size of a single header line in bytes.
val max_header_count : t -> intMaximum number of headers allowed.
val max_decompressed_size : t -> int64Maximum decompressed size in bytes.
val max_compression_ratio : t -> floatMaximum compression ratio allowed (e.g., 100.0 means 100:1).
val pp : Format.formatter -> t -> unitPretty-printer for response limits.
val to_string : t -> stringConvert response limits to a human-readable string.