Releases: ocaml-attic/ocaml-cohttp
Releases · ocaml-attic/ocaml-cohttp
Thread safety and Async SSL
0.10.1 (2014-04-01):
- Remove dependency on
ocaml-rein order to make library POSIX thread-safe. - Add Async-SSL support for both client and server (mirage#102).
Interface cleanups before a 1.0 release
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.
Sexp support for most types
0.9.16 (2014-01-30):
- Add some module type equalities in
Cohttp_lwt_unixso that
Cohttp_lwt_unix.Server.Request.IO.iccan be equivalen toLwt_io.input_channel. - Add sexp converters to most Cohttp types (mirage#83).
- Improve Travis tests to cover more upstream users of Cohttp.
- Refactor build flags to let the portable Lwt-core be built independently of Lwt.unix.
Cookie improvements, API consistency and better header parsing
0.9.15 (2014-01-11):
- Remove
Cohttp_miragelibraries, which have now moved tomirage/mirage-http-*on GitHub. - Add an "HTTP only"
Cookieattribute (mirage#69). - Fix parsing of cookies with
=in the values (mirage#71). - Add
Max-agesupport for cookies (mirage#70). - Make the
Responserecord fields mutable to match theRequest(mirage#67). - Fix compilation with Async 109.58.00 (mirage#77).
- Make Header handling case-insensitive (by forcing lowercase) (mirage#75).
- Remove the
>>operator as it was unused and had incorrect precedence (mirage#79).
Better Server-Side Event support, complete HTTP codes and install a server binary
0.9.14 (2013-12-15):
- Install a
cohttp-serverbinary that serves local directory contents via a web server (mirage#54). - Add a
flushfunction to theIOmodule type and implement in Lwt/Async/Mirage. - Add option
flushsupport in the Async and Lwt responders (mirage#52). - Autogenerate HTTP codes from @citricsquid's JSON representation of the HTTP RFCs.
- Always set
TCP_NODELAYfor Lwt/Unix server sockets for low-latency responses (mirage#58). - Added a Server-Side Events test-case from the HTML5 Doctor. See
lib_test/README.md. - Async.Server response now takes an optional
bodyrather than a mandatorybody option(mirage#62). - Regenerate build system using OASIS 0.4.0.
Mirage 1.0 support and Lwt-core
0.9.13 (2013-12-10):
- The
cohttp.lwt-coreis now installed as an OS-independent Lwt library. - Add support for Mirage 1.0, via
cohttp.mirage-unixandcohttp.mirage-xen. - Add a new
Cohttp.Connectionmodule to manage server's connections identifiers. - Share the same configuration type for the different server implementations.
- Add
Accept_typesmodule to theCohttppack.
Polishing the interfaces to a fine shine
0.9.12 (2013-11-28):
- Improve documentation for
Cohttp.Header. - Expose Fieldslib setters and getters for most of the
Cohttptypes (mirage#38). Cohttp.Set_cookie.tis no longer an abstract type to make it easier to update (mirage#38).- [Lwt] ignore SIGPIPE unconditionally if using the Lwt/Unix module (mirage#37).
- Rename
Cookiecreation parameters for consistency (interface breaking, see mirage#44). - Fix transfer-length detection (regression from 0.9.11 in mirage#42).
- Add Merin editor file (mirage#41).
Mini features: HTTP 1.0 improved, OPTIONS and Travis
0.9.11 (2013-10-27):
- Request module: When sending a request, add the port information in the host header field if available.
- Request module: When parsing a request, add scheme, host and port information in the uri.
- TCP server: When creating the socket for the server, do not force PF_INET6 but take the sockaddr value.
- Add HTTP OPTIONS method.
- Use getaddrinfo instead of gethostbyname for DNS resolution.
- Async: improve HTTP/1.0 support (mirage#35).
- Build with debug symbols, binary annotations by default.
- Add Travis CI test scripts.