package tiny_httpd_camlzip

  1. Overview
  2. Docs
Interface to camlzip for tiny_httpd

Install

Dune Dependency

Authors

Maintainers

Sources

tiny_httpd-0.19.tbz
sha256=55b6eed7d2e41b9b2a282b344e01ca010abdba66cbbbbe5adab18303b9ff8360
sha512=98c599627b9cd98f641d389e022f9ddc025bfba838793267904b94a01b0b40b3b4cfd8f5a8d8214aaa947958e45cecbe1df751692a461f929802714d7af50e06

doc/tiny_httpd_camlzip/Tiny_httpd_camlzip/index.html

Module Tiny_httpd_camlzipSource

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).

Sourceval middleware : ?compress_above:int -> ?buf_size:int -> unit -> Tiny_httpd_core.Server.Middleware.t

Middleware responsible for deflate compression/decompression.

  • parameter compress_above

    threshold, in bytes, above which a response body that has a known content-length is compressed. Stream bodies are always compressed.

  • parameter buf_size

    size of the underlying buffer for compression/decompression

  • since 0.11
Sourceval 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

  • parameter compress_above

    threshold above with string responses are compressed

  • parameter buf_size

    size of the underlying buffer for compression/decompression

OCaml

Innovation. Community. Security.