Safe Haskell | None |
---|---|
Language | Haskell98 |
Twilio.Internal.Resource
- class Get r where
- class Get0 r where
- class Get1 a r where
- class Get2 a b r where
- class Post r where
- class Post0 r where
- class Post1 a r where
- class Post2 a b r where
- class Post3 a b c r where
- class Delete r where
- class Delete1 a where
- parseJSONFromResponse :: (FromJSON a, MonadThrow m) => Response ByteString -> m a
Documentation
This module repackages functionality exposed by MonadRequest
into a
set of classes that REST resources can easily consume. It also provides
functions get
and post
that work well with type inference.
Get
represents REST resources that support HTTP GET requests with any number of arguments.
Minimal complete definition
Instances
Get0
represents REST resources that support HTTP GET requests with 0 arguments.
Minimal complete definition
Methods
get0 :: MonadThrow m => TwilioT m r Source #
Instances
Get1
represents REST resources that support HTTP GET requests with 1 argument.
Minimal complete definition
Methods
get1 :: MonadThrow m => a -> TwilioT m r Source #
Instances
class Get2 a b r where Source #
Get2
represents REST resources that support HTTP GET requests with 2 arguments.
Minimal complete definition
Methods
get2 :: MonadThrow m => a -> b -> TwilioT m r Source #
Post
represents REST resources that support HTTP POST requests with any number of arguments.
Minimal complete definition
Post0
represents REST resources that support HTTP POST requests with 0 arguments.
Minimal complete definition
Methods
post0 :: MonadThrow m => TwilioT m r Source #
class Post1 a r where Source #
Post1
represents REST resources that support HTTP POST requests with 1 argument.
Minimal complete definition
Methods
post1 :: MonadThrow m => a -> TwilioT m r Source #
class Post2 a b r where Source #
Post2
represents REST resources that support HTTP POST requests with 2 arguments.
Minimal complete definition
Methods
post2 :: MonadThrow m => a -> b -> TwilioT m r Source #
class Post3 a b c r where Source #
Post3
represents REST resources that support HTTP POST requests with 3 arguments.
Minimal complete definition
Methods
post3 :: MonadThrow m => a -> b -> c -> TwilioT m r Source #
Delete
represents REST resources that support HTTP DELETE requests with any number of arguments.
Minimal complete definition
class Delete1 a where Source #
Delete1
represents REST resources that support HTTP POST requests with 1 argument.
Minimal complete definition
Methods
delete1 :: MonadThrow m => a -> TwilioT m () Source #
parseJSONFromResponse :: (FromJSON a, MonadThrow m) => Response ByteString -> m a Source #