0.10.0 (2014-03-02):
- Interface change: The
RequestandResponsemodule types now explictly
signalEofandInvalid(for errors), to help the backend distinguish them. - Interface change: Unify HTTP body handling across backends into a
Cohttp.Body
module. This is extended by Async/Lwt implementations with their specific
ways of handling bodies (Pipes for Async, or Lwt_stream for Lwt). - [lwt] Interface change: HTTP client calls now raise Lwt exceptions rather
than return an option type. This permits better error handling in Lwt. - [lwt] Interface change: The
Servercallback now always provides abody
argument, sinceCohttp_lwt_bodynow explicitly supports empty bodys. - Add
Cohttp.Header.is_keep_aliveto test if a connection should be reused. - [lwt] Respect the
keep-aliveheader in the server request handling. - [async] Add a
Bodythat takes aPipeor astring, similarly to Lwt. - Install
cohttp-serverbinary even if tests are disabled. - Begin an
examplesdirectory with some simple uses of the library.