servant-0.2: A family of combinators for defining webservices APIs and serving them

Safe HaskellNone
LanguageHaskell2010

Servant.API

Contents

Synopsis

Combinators

Type-level combinator for expressing subrouting: :>

Type-level combinator for alternative endpoints: :<|>

Accessing information from the request

Capturing parts of the url path as parsed values: Capture

Retrieving specific headers from the request

Retrieving parameters from the query string of the URI: QueryParam

Accessing the request body as a JSON-encoded type: ReqBody

Actual endpoints, distinguished by HTTP method

GET requests

POST requests

DELETE requests

PUT requests

Untyped endpoints

Plugging in a wai Application, serving directories

Utilities

QuasiQuotes for endpoints

module Servant.QQ

Type-safe internal URLs