Module

Oak.Ajax

Package
purescript-oak-ajax
Repository
ehrenmurdick/purescript-oak-ajax

#post Source

post :: forall b a. WriteForeign a => ReadForeign b => Maybe a -> URL -> (Either AjaxError b -> Effect Unit) -> Effect Unit

#get Source

get :: forall a. ReadForeign a => URL -> (Either AjaxError a -> Effect Unit) -> Effect Unit

#delete Source

delete :: forall a. ReadForeign a => URL -> (Either AjaxError a -> Effect Unit) -> Effect Unit

#put Source

put :: forall b a. WriteForeign a => ReadForeign b => Maybe a -> URL -> (Either AjaxError b -> Effect Unit) -> Effect Unit

Re-exports from Simple.Ajax

#AjaxError Source

type AjaxError = BasicError ParseError

Extends HTTPError to add json parsing errors.

Modules
Oak.Ajax