Http4s is a minimal, idiomatic Scala interface for HTTP services. Http4s is Scala's answer to Ruby's Rack, Python's WSGI, Haskell's WAI, and Java's Servlets. http4s servers and clients share an immutable model of requests and responses. Standard headers are modeled as semantic types, and entity codecs are done by typeclass. The pure functional side of Scala is favored to promote composability and easy reasoning about your code. I/O is managed through cats-effect. http4s is built on FS2, a streaming library that provides for processing and emitting large payloads in constant space and implementing websockets. http4s cross-builds for Scala.js and Scala Native. Share code and deploy to browsers, Node.js, native executable binaries, and the JVM.

Features

  • Running the blaze backend requires a modern, supported version of the JVM to build and run
  • Relies on server APIs unavailable before JDK8u252
  • Any JDK newer than JDK8u252, including 9+ is supported
  • Minimal, idiomatic Scala interface for HTTP services
  • Http4s is Scala's answer to Ruby's Rack, Python's WSGI, Haskell's WAI, and Java's Servlets
  • If you run into any difficulties please enable partial unification in your build.sbt

Project Samples

Project Activity

See All Activity >

License

Apache License V2.0

Follow Http4s

Http4s Web Site

You Might Also Like
Our Free Plans just got better! | Auth0 by Okta Icon
Our Free Plans just got better! | Auth0 by Okta

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your secuirty. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Http4s!

Additional Project Details

Programming Language

Scala

Related Categories

Scala HTTP Servers, Scala HTTP Clients

Registered

2023-05-11