• Stars
    star
    289
  • Rank 137,941 (Top 3 %)
  • Language
    Scala
  • License
    Other
  • Created almost 10 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A self documenting DSL built on http4s

ρ: A DSL for building HTTP services with http4s

CI Maven Central Gitter

val httpService = new RhoRoutes[IO] {
   GET / "hello" / pv"world" +? param[Int]("fav") |>> { (world: String, fav: Int) => 
     Ok(s"Received $fav, $world") 
   }
}

See the tutorial, wiki and the tests for more examples.

Get more from your route definitions

The primary goal of ρ is to provide an easy to use AST with which to build HTTP services which can be inspected to extract a variety of information including:

Get ρ

Rho artifacts are available at Maven Central and snapshots are available from the Sonatype repositories.

Read the Rho Scaladocs

resolvers += Resolver.sonatypeRepo("snapshots")  // Only if you are using a -snapshot version

libraryDependencies += "org.http4s" %% "rho-swagger" % version

Stability

ρ remains a work in progress. However, it is now approaching a point where things are beginning to stabilize. Going forward changes to the api should will come more slowly and have deprecation period.

Contributing

Contributions of all kinds are welcome! Documentation contributions are especially useful for others who are also just learning to use ρ. The wiki and the tests are the primary source of documentation. Pull requests are greatly appreciated from their original authors, licensed to the http4s project under the project's open source license.

License

ρ is licensed under the terms of the Apache 2.0 license. See the license file in the base directory for more information.

More Repositories

1

http4s

A minimal, idiomatic Scala interface for HTTP
Scala
2,503
star
2

blaze

Blazing fast NIO microframework and Http Parser
Scala
344
star
3

http4s.g8

giter8 template for bootstrapping http4s services
Scala
104
star
4

http4s-armeria

Armeria backend for http4s
Scala
59
star
5

http4s-jdk-http-client

JDK 11+ http client implementation for http4s clients
Scala
55
star
6

http4s-netty

Http4s on pure netty
Scala
40
star
7

http4s-curl

curling isn't just for Canadians
Scala
32
star
8

http4s-dom

http4s, in a browser near you
Scala
26
star
9

http4s_demo

See how easy http4s makes life
JavaScript
14
star
10

http4s-finagle

Http4s on Finagle Server or Client
Scala
11
star
11

http4s-websocket

Common websocket support for blaze and http4s-servlet
Scala
9
star
12

sbt-http4s-org

An experimental SBT plugin to support various http4s projects
Scala
9
star
13

http4s-io.g8

An alternate giter8 template fixed on IO
Scala
9
star
14

http4s-session

Http4s Session Convenience
Scala
8
star
15

http4s-prometheus-metrics

Support for Prometheus Metrics
Scala
8
star
16

http4s-fs2-data

http4s integration with fs2-data
Scala
7
star
17

http4s-crypto

Incubator for cryptographic functions cross-built for the JVM and Scala.js.
Scala
7
star
18

http4s-servlet

http4s-servlet support
Scala
5
star
19

http4s-scalatags

Scalatags template support for http4s
Scala
5
star
20

http4s-twirl

Twirl template support for http4s
Scala
4
star
21

http4s-jetty

Jetty backend for http4s servers
Scala
4
star
22

http4s-scala-xml

http4s codecs for scala-xml
Scala
4
star
23

http4s-fabric

Fabric integration module for http4s
Scala
4
star
24

http4s-play-json

Play JSON codecs for http4s
Scala
3
star
25

http4s-monadic-dsl

Scala
3
star
26

hpack

Header Compression for HTTP/2
Scala
2
star
27

http4s-okhttp-client

okhttp implementation for http4s clients
Scala
1
star
28

http4s-tomcat

Apache Tomcat backend for http4s
Scala
1
star