Module

Network.HTTP.AffjaxF

Package
purescript-affjax-algebra
Repository
slamdata/purescript-affjax-algebra

#AffjaxFP Source

data AffjaxFP req res a

Constructors

Instances

#AffjaxF Source

type AffjaxF req res = AffjaxFP req res (Either Error (AffjaxResponse res))

#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.

#post_' Source

post_' :: forall a. Requestable a => URL -> Maybe a -> AffjaxF a Unit

Makes a POST request to the specified URL with the option to send data, and ignores 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.

#put_' Source

put_' :: forall a. Requestable a => URL -> Maybe a -> AffjaxF a Unit

Makes a PUT request to the specified URL with the option to send data, and ignores the response.

#delete Source

delete :: forall a. Respondable a => URL -> AffjaxF Unit a

Makes a DELETE request to the specified URL.

#delete_ Source

delete_ :: URL -> AffjaxF Unit Unit

Makes a DELETE request to the specified URL and ignores the response.

#eval Source

eval :: forall a eff res req. Requestable req => Respondable res => AffjaxFP req res a -> Aff (ajax :: AJAX | eff) a