package yurt
Build not checkedInstall
dune-project
Dependency
Authors
Maintainers
Sources
sha256=3626b904493627bc39632861e192487685f106ab4cf589bc52b38ca3f2fe1b48
md5=8b5bab07d30fed735101a0f3a7fdfedb
Description
Yurt provides a simple API for creating HTTP servers based on Cohttp and Lwt. See https://github.com/zshipko/yurt for more information.
Added to opam-repository:
README
Yurt
yurt is an HTTP microframework for OCaml based on Cohttp.
Features
- Simple API
- Multipart forms
- Regex based URL routing
- Code-based templates
Installation
opam install yurtUsage
open Yurt.Server
open Yurt.Route
(* Create a server *)
server "127.0.0.1" 1234
(* Add a handler *)
>| get "/<name:string>" (fun req params body ->
let body = Yurt_html.h1 ("Hello " ^ param_string params "name") in
respond_html ~status:`OK ~body ())
(* Run it *)
|> runSee example/example.ml for more examples.
Dependencies (8)
-
ezjsonm
>= "0.5.0" -
lwt_log
>= "1.0.0" -
cohttp-lwt-unix
>= "1.0.0" -
conduit-lwt-unix
>= "1.0.0" & < "2.3.0" -
topkg
build -
ocamlbuild
build -
ocamlfind
build -
ocaml
>= "4.03.0"
Dev Dependencies
None
Optional Dependencies
None
Used by
None
Conflicts
None
Build status
Results of building yurt 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