package webmachine
Build not checkedInstall
dune-project
Dependency
Authors
Maintainers
Sources
sha256=d6e6567c1e177aefe6f1a62a32ff61942521866ee1579a55ffb2b7970ddc04c4
md5=e49e81e81ac0527e452aa6f6fd5c9616
Description
OCaml webmachine is a layer on top of cohttp that implements a state-machine-based HTTP request processor. It's particularly well-suited for writing RESTful APIs. As the name suggests, this is an OCaml port of the webmachine project.
Added to opam-repository:
README
ocaml-webmachine
ocaml-webmachine is a layer on top of cohttp that implements a state-machine-based HTTP request processor. It's particularly well-suited for writing RESTful APIs. As the name suggests, this is an OCaml port of the webmachine project.
Installation
Install the library and its depenencies via OPAM:
opam install webmachineGetting Started
webmachine implements this decision diagram to determine how an HTTP request should be handled. This includes validation, authentication, content negotiation, and caching. A resource specifies the decision that should be made at each node in the diagram by defining the appropriate method in a resource subclass. The correspondence is suggested by the name of the method for now. This will be better-documented in the future.
Examples
To build the examples in the examples/ subdirectory:
dune build examples/hello_lwt.exe
dune build examples/crud_lwt.exe
dune build examples/hello_async.exeDevelopment
To install development dependencies, pin the package from the root of the repository:
opam pin add -n webmachine .
opam install --deps-only webmachineAfter this, you may install a development version of the library using the install command as usual.
For building and running the tests during development, you will need to install the oUnit package and run tests:
opam install oUnit
dune runtestLicense
BSD3, see LICENSE file for its text.
Dependencies (6)
Dev Dependencies (1)
-
ounit
with-test & >= "1.0.2"
Optional Dependencies
None
Used by (2)
Conflicts
None
Build status
Results of building webmachine with each compiler on check.ci.ocaml.org, run of against opam-repository 8d8d144. All results for this package.
Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.
This version is not in the latest run; the versions below are.
- good Package successfully built
- partial One of the dependencies failed to build
- bad Package failed to build
- n/a Package is not available in this environment
- internal Internal failure