# http4s

> Typeful, functional, streaming HTTP for Scala

Source: https://talira.ai/catalog/http4s-zcgppv5n
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Framework, Library
- Categories: [frameworks / web / backend](https://talira.ai/categories/frameworks/web/backend)
- Licence: Apache-2.0[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Self-hostable: yes[^1]
- Backed by: [Typelevel](https://talira.ai/orgs/typelevel.md)

http4s is a minimal, idiomatic [Scala](https://talira.ai/catalog/scala-g5wyay8j.md) interface for HTTP servers and clients, Scala's answer to Ruby's Rack, Python's WSGI and Java's Servlets. Servers and clients share an immutable model of requests and responses, with standard headers modeled as semantic types and entity codecs done by type class; routes are pattern matches on method and path. It favours pure functional Scala, managing I/O through Cats Effect, and is built on FS2 streaming so large payloads and websockets run in constant space. It cross-builds for Scala.js and Scala Native, so code can run in browsers, Node.js, native binaries and the JVM. A Typelevel project, Apache-2.0 licensed.

## Links

- Website: https://http4s.org/
- GitHub: https://github.com/http4s/http4s

## Problems it solves

- build an HTTP API in Scala with pure functional programming
- an HTTP server and client for Scala that work with Cats Effect
- stream large HTTP request and response bodies in Scala in constant memory
- add websockets to a Scala service
- share HTTP client code between the JVM, Scala.js and Scala Native
- type-safe HTTP headers and request decoding in Scala

## Features

- servers and clients sharing an immutable request and response model
- headers modeled as semantic types; entity codecs by type class
- route definitions by pattern matching on method and path
- I/O through Cats Effect
- streaming with FS2, including websockets
- cross-builds for Scala.js and Scala Native

## Capabilities

- Has official SDKs: plan not known

## Trust

Overall: 0.27 out of 1.
Signals: backing 0.30, extensibility 0.00.

- backed by Typelevel

Warnings:

- GitHub activity not fetched yet

## Related

- Works with [Cats](https://talira.ai/catalog/cats-sptyhtma.md)

## Sources

[^1]: https://http4s.org/ (checked 24 Nov 2026)
