servant-util-0.1.0.2: Servant servers utilities.
Safe HaskellNone
LanguageHaskell2010

Servant.Util.Stats

Description

Verious information about your API.

Synopsis

Documentation

methodsCoveringAPI :: forall methods api. (ContainsOnlyMethods methods api, ReflectMethods methods) => [Method] Source #

For the given list of methods, ensure only they are used in API, and get corresponding Method terms.

A primary use case for this function is specifying CORS methods where we need to think about each single method we allow, thus expecting methods list to be specified manually.