Module

Oak.Cmd.Http

Package
purescript-oak
Repository
ehrenmurdick/purescript-oak

#HTTP Source

data HTTP :: Command

#get Source

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

#post Source

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