Tiny_httpd_camlzip
Middleware for compression.
This uses camlzip to provide deflate compression/decompression. If installed, the middleware will compress responses' bodies when they are streams or fixed-size above a given limit (but it will not compress small, fixed-size bodies).
val middleware :
?compress_above:int ->
?buf_size:int ->
unit ->
Tiny_httpd_core.Server.Middleware.t
Middleware responsible for deflate compression/decompression.
val setup :
?compress_above:int ->
?buf_size:int ->
Tiny_httpd_core.Server.t ->
unit
Install middleware for tiny_httpd to be able to encode/decode compressed streams