@@ -11,18 +11,18 @@ Elm.HTTP = function() {
12 /*[Creating Requests]*/
12 /*[Creating Requests]*/
14− /** get :: String -> Request String
14+ /** get : String -> Request String
15 Create a GET request to the given url.
15 Create a GET request to the given url.
17 function get(url) { return request("GET")(url)(null)(["Nil"]); }
17 function get(url) { return request("GET")(url)(null)(["Nil"]); }
19− /** post :: String -> String -> Request String
19+ /** post : String -> String -> Request String
20 Create a POST request to the given url, carrying the given data.
20 Create a POST request to the given url, carrying the given data.
22 function post(url) { return function(data) {
22 function post(url) { return function(data) {
23 return request("POST")(url)(data)(["Nil"]); }; }
23 return request("POST")(url)(data)(["Nil"]); }; }
25− /** request :: String -> String -> String -> [(String,String)] -> Request String
25+ /** request : String -> String -> String -> [(String,String)] -> Request String
26 Create a customized request. Arguments are request type (get, post, put,
26 Create a customized request. Arguments are request type (get, post, put,
27 delete, etc.), target url, data, and a list of additional headers.
27 delete, etc.), target url, data, and a list of additional headers.
@@ -86,7 +86,7 @@ Elm.HTTP = function() {
87 /*[Sending Requests]*/
87 /*[Sending Requests]*/
89− /** send :: Signal (Request a) -> Signal (Response String)
89+ /** send : Signal (Request a) -> Signal (Response String)
90 Performs an HTTP request with the given requests. Produces a signal
90 Performs an HTTP request with the given requests. Produces a signal
91 that carries the responses.
91 that carries the responses.
@@ -97,7 +97,7 @@ Elm.HTTP = function() {
97 return Elm.Signal.lift2(f)(responses)(sender);
97 return Elm.Signal.lift2(f)(responses)(sender);
100− /** sendGet :: Signal String -> Signal (Response String)
100+ /** sendGet : Signal String -> Signal (Response String)
101 Performs an HTTP GET request with the given urls. Produces a signal
101 Performs an HTTP GET request with the given urls. Produces a signal
102 that carries the responses.
102 that carries the responses.