Skip to content
/ finch Public
forked from finagle/finch

Scala combinator library for building Finagle HTTP services

License

Notifications You must be signed in to change notification settings

samaitra/finch

Repository files navigation

Finch is a thin layer of purely functional basic blocks atop of Finagle for building composable REST APIs. Its mission is to provide the developers simple and robust REST API primitives being as close as possible to the bare metal Finagle API.

Status

Build Status Coverage Status

Modules

Finch uses multi-project structure and contains of the following modules:

Installation

Every Finch module is published at Maven Central. Use the following sbt snippet ...

  • for the stable release:
libraryDependencies ++= Seq(
  "com.github.finagle" %% "[finch-module]" % "0.4.0"
)
  • for the SNAPSHOT version:
resolvers += Resolver.sonatypeRepo("snapshots")

libraryDependencies ++= Seq(
  "com.github.finagle" %% "[finch-module]" % "0.5.0-SNAPSHOT" changing()
)

Hello World!

This "Hello World!" example is built with the 0.5.0-SNAPSHOT version of finch-core.

import io.finch._
import io.finch.route._
import io.finch.response._

Httpx.serve(":8080",
  Get / "hello" /> Ok("Hello, world!").toFuture: Endpoint[HttpRequest, HttpResponse]
)

Documentation

  • A comprehensive documentation may be found in the docs.md file in the root directory
  • The latest Scaladoc is here

Contacts

  • Most of the discussions and announcements are happen at Gitter

Adopters

Contributing

There are plenty of ways to contribute into Finch:

License

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this software except in compliance with the License.

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.

About

Scala combinator library for building Finagle HTTP services

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Scala 100.0%