Analogweb Framework is tiny, simple, and pluggable web framework with Scala.
This Framework helps you quickly building web API and currently supports these servers.
- Built-in non-blocking HTTP server(TLS/SSL are not supported.)
- Netty4 supports netty-plugin(Strongly RECOMMENDED!)
- Servlet 2.5+ (e.g. Jetty,Tomcat,etc…) supports servlet-plugin
Quick Start
You need to add sbt dependency on build.sbt.
scalaVersion := "2.13.1"
libraryDependencies ++= Seq (
"org.analogweb" %% "analogweb-scala" % "0.12.0"
)
And write a few lines of code.
import analogweb._
http("localhost",8000) {
get("/helloworld") { "Hello, World" }
}.run
Execute sbt run
and you will get them.
$ curl localhost:8000/helloworld
$ Hello World
Examples
More examples, please watch this project.