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

Other Useful Business Software
Zenflow- The AI Workflow Engine for Software Devs Icon
Zenflow- The AI Workflow Engine for Software Devs

Parallel agents. Multi-agent orchestration. Specs that turn into shipped code. Zenflow automates planning, coding, testing, and verification.

Zenflow is the AI workflow engine built for real teams. Parallel agents plan, code, test, and verify in one workflow. With spec-driven development and deep context, Zenflow turns requirements into production-ready output so teams ship faster and stay in flow.
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