Module
Network.HTTP.AffjaxF
- Package
- purescript-affjax-algebra
- Repository
- slamdata/purescript-affjax-algebra
#AffjaxFP Source
data AffjaxFP req res a
Constructors
AffjaxFP (AffjaxRequest req) (Either Error (AffjaxResponse res) -> a)
Instances
#affjax Source
affjax :: forall b a. Requestable a => Respondable b => AffjaxRequest a -> AffjaxF a b
Makes an Affjax
request.
#get Source
get :: forall a. Respondable a => URL -> AffjaxF Unit a
Makes a GET
request to the specified URL.
#post Source
post :: forall b a. Requestable a => Respondable b => URL -> a -> AffjaxF a b
Makes a POST
request to the specified URL, sending data.
#post' Source
post' :: forall b a. Requestable a => Respondable b => URL -> Maybe a -> AffjaxF a b
Makes a POST
request to the specified URL with the option to send data.
#post_ Source
post_ :: forall a. Requestable a => URL -> a -> AffjaxF a Unit
Makes a POST
request to the specified URL, sending data and ignoring the
response.
#put Source
put :: forall b a. Requestable a => Respondable b => URL -> a -> AffjaxF a b
Makes a PUT
request to the specified URL, sending data.
#put' Source
put' :: forall b a. Requestable a => Respondable b => URL -> Maybe a -> AffjaxF a b
Makes a PUT
request to the specified URL with the option to send data.
#put_ Source
put_ :: forall a. Requestable a => URL -> a -> AffjaxF a Unit
Makes a PUT
request to the specified URL, sending data and ignoring the
response.
#delete Source
delete :: forall a. Respondable a => URL -> AffjaxF Unit a
Makes a DELETE
request to the specified URL.
#eval Source
eval :: forall a eff res req. Requestable req => Respondable res => AffjaxFP req res a -> Aff (ajax :: AJAX | eff) a
- Modules
- Network.
HTTP. AffjaxF