Module

Oak.Cmd.Http

Package
purescript-oak
Repository
ehrenmurdick/purescript-oak

#HTTP Source

data HTTP :: Command

#get Source

get :: forall c m a t. Generic a t => GenericDecode t => Decode a => String -> (Either String a -> m) -> Cmd (http :: HTTP | c) m

#post Source

post :: forall c m a t body e. Generic a t => GenericDecode t => Decode a => Generic body e => GenericEncode e => String -> body -> (Either String a -> m) -> Cmd (http :: HTTP | c) m

#put Source

put :: forall c m a t body e. Generic a t => GenericDecode t => Decode a => Generic body e => GenericEncode e => String -> body -> (Either String a -> m) -> Cmd (http :: HTTP | c) m

#patch Source

patch :: forall c m a t body e. Generic a t => GenericDecode t => Decode a => Generic body e => GenericEncode e => String -> body -> (Either String a -> m) -> Cmd (http :: HTTP | c) m

#delete Source

delete :: forall c m a t. Generic a t => GenericDecode t => Decode a => String -> (Either String a -> m) -> Cmd (http :: HTTP | c) m