-
Notifications
You must be signed in to change notification settings - Fork 65
Home
GitWiki edited this page Nov 30, 2015
·
12 revisions
/// src_inlined SimplePath core/src/test/scala/org/http4s/rhotest/ApiExamples.scala
new RhoService {
GET / "hello" |>> { () => Ok("Hello, world!") }
}
/// end_src_inlined
- The http4s-core dsl defines routes in terms of partial functions using pattern matching extractors while rho uses a set of 'rules' to match and extract information from the request.
- Rho maintains meta data such as the names of extracted parameters and their types which can be reused for tasks such as generation of Swagger documentation.
- Rho routing is implemented as an efficient tree structure as opposed to a linear search.