KO
|
EN
gitlite — search
Search
#python
#java
#python3
#arduino
#golang
#machine-learning
#rust
#html
#flask
#javascript
#seismology
#nodejs
routineer
★ 13
Open GitHub ↗
Scala DSL for declaring HTTP routes
Download README (.md)
Explore Similar Repositories
ngx_http_qqwry_module
:
A nginx module that creates variables with location info from QQWry
LocLog
:
Location logging in CouchDB
cmd
:
Quick command execution for browsers.
udpproxy
:
a Netfilter powered UDP proxy
webgl-unproject
:
A Javascript port of the standard gluUnProject function used for mapping window coordinates to object coordinates.
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
routineer
?
Download (.md)
Routineer ========= Routineer is a Scala library that provides an internal DSL for declaring HTTP routes. Routes are constructed from strings and patterns and the type of the handling function is automatically inferred: get("prefix" /> * /> "middle" /> (IntP >>> PositiveP[Int])) { (req // Your request type, str // Inferred to be a String, i // Inferred to be an Int) => ... } Installation ------------ ### Automatic Routineer artifacts `routineer` and `routineer-scalaz` are published at [Scala-Tools.org repository](http://nexus.scala-tools.org) with groupId `com.github.mvv.routineer`. Add the following lines to your `pom.xml` if you are using Maven: <dependency> <groupId>com.github.mvv.routineer</groupId> <artifactId>routineer_YOUR-SCALA-VERSION</artifactId> <version>0.1.2</version> </dependency> Or add this line to your build file if you are using Simple Build Tool: libraryDependencies += "com.github.mvv.routineer" %% "routineer" % "0.1.2" ### From source Install [Simple Build Tool](https://github.com/harrah/xsbt), run $ sbt update publish-local publish-local-maven If you plan to use Routineer with [Scalaz](http://code.google.com/p/scalaz), run $ sbt "project routineer-scalaz" update publish-local publish-local-maven Usage ----- There is no documentation at the moment, look at the [example](https://github.com/mvv/routineer/blob/master/examples/servlet/src/ExampleServlet.scala)