CivetWeb bindings for Scala
WARNING: This is a very early experimental effort. The things may not work as expected or not work at all.
- Run
sbt run
orsbt compile
. - Enjoy the HTTP server at
http://localhost:8080/health
.
See Main.scala
as an example on how to use the bindings.
pthreads
are used to make sure a single Scala Native thread handles mutliple CivetWeb worker threads,- Scala Native Bindgen used to generate the low level bindings (https://scala-native.github.io/scala-native-bindgen/).
- Scalaz is used to wrap them in more useful form. Cats is not ready yet: typelevel/cats#1549.
- CivetWeb 1.11 is included and will be statically linked (https://github.com/civetweb/civetweb).
- Publish to maven repository / bintray.