Need help with http4s?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

http4s
2.0K Stars 641 Forks Apache License 2.0 12.2K Commits 255 Opened issues

Description

A minimal, idiomatic Scala interface for HTTP

Services available

!
?

Need anything else?

Contributors list

# 22,176
Scala
swagger
fp
typelev...
3151 commits
# 10,906
Scala
finagle
Redis
MySQL
719 commits
# 65,110
fs2
typelev...
Deploye...
fp
571 commits
# 5,468
scalajs
playfra...
akka-ht...
fp
493 commits
# 82,549
playfra...
fp
interpo...
Elixir
336 commits
# 128,323
Shell
Common ...
Scala
typelev...
190 commits
# 58,509
Shell
Scala
fp
typecla...
189 commits
# 113,892
fp
fs2
scalajs
lens
152 commits
# 120,947
Scala
Shell
jvm-lan...
typelev...
151 commits
# 144,980
Scala
playfra...
Shell
web-app...
115 commits
# 121,288
fs2
fp
bmp
java8
97 commits
# 66,726
Clojure
hugo
Linux
typelev...
71 commits
# 65,598
Scala
playfra...
fp
sed
69 commits
# 6,195
Scala
swagger
golang
swagger...
59 commits
# 8,662
Scala
fp
mapredu...
theano
58 commits
# 60,058
Scala
fs2
Shell
fp
58 commits
# 191,155
Scala
Shell
dotty
fs2
48 commits
# 59,097
Nim
centos
oracle
procedu...
47 commits
# 211,922
Shell
opencl
Haskell
typelev...
45 commits
# 207,478
Scala
XML
Emacs
emacs-l...
37 commits

Http4s Build Status Maven Central Typelevel library Cats friendly

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.

val http = HttpRoutes.of {
  case GET -> Root / "hello" =>
    Ok("Hello, better world.")
}

Learn more at http4s.org.

If you run into any difficulties please enable partial unification in your

build.sbt
(not needed for Scala 2.13 and beyond, because Scala 2.13.0+ has partial unification switched on by default)
scalacOptions ++= Seq("-Ypartial-unification")

Code of Conduct

http4s is proud to be a Typelevel project. We are committed to providing a friendly, safe and welcoming environment for all, and ask that the community adhere to the Scala Code of Conduct.

License

This software is licensed under the Apache 2 license, quoted below.

Copyright 2013-2021 http4s [https://http4s.org]

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

[http://www.apache.org/licenses/LICENSE-2.0]

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Acknowledgments

YourKit

Special thanks to YourKit for supporting this project's ongoing performance tuning efforts with licenses to their excellent product.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.