Safe Haskell | None |
---|---|
Language | Haskell2010 |
Verious information about your API.
Synopsis
- methodsCoveringAPI :: forall methods api. (ContainsOnlyMethods methods api, ReflectMethods methods) => [Method]
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.