tmcgilchrist/airship
概要
Helium + Webmachine = Airship。宣言的でRESTfulなWebアプリを構築するためのツールキットです。
Web・アプリ開発計測したスター増加
- 24時間
- 0
- 7日間
- 0
- 15日間
- 0
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルAirship
Airship is a Haskell library for handling and serving HTTP requests in a RESTful fashion. It is heavily inspired by Webmachine and works with any WAI-compatible web server such as Warp.
It aims to be small, fast, and flexible.
How does it work?
Airship resources are represented with a Resource record type.
Each field in Resource corresponds to an action taken in the Webmachine decision tree.
Airship provides a defaultResource with sensible defaults for each of these actions; you build web services by overriding fields in the default resource with your own.
Routes are declared with a simple monadic syntax:
routes = do
root #> someRootResource
"account" </> var "name" #> accountResource
For a simple example that handles HTTP GET and POST requests, please check example/Basic.hs.
For a slightly more involved example that generates HTML and manages a pool of resources, please check the blimp repository.
Airship is copyright © 2015 Helium Systems, Inc., and released to the public under the terms of the MIT license.
関連プロジェクトを探す
読み込み中…