servant-avro

Servant support for talking Avro


Keywords
library, servant, web, Propose Tags , Servant.API.ContentTypes.Avro
License
BSD-3-Clause
Install
cabal install servant-avro

Documentation

servant-avro

Build Status

Servant integration for Avro

This package lets you communicate with clients using Avro.

It exposes an Avro content type, so that instead of having:

type API = "path" :> "to" :> "resource" :> Get '[JSON] a

you can say:

type API = "path" :> "to" :> "resource" :> Get '[Avro] a

or even:

type API = "path" :> "to" :> "resource" :> Get '[JSON, Avro] a

and of course, this will work for all HTTP verbs, and for request bodies, and anywhere else you use a content type in Servant.