couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From iil...@apache.org
Subject [1/3] couch commit: updated refs/heads/master to 159970b
Date Wed, 08 Feb 2017 20:26:54 GMT
Repository: couchdb-couch
Updated Branches:
  refs/heads/master bbbd53223 -> 159970ba5


refactor to use greater arity functions


Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch/commit/9e4a5cd9
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch/tree/9e4a5cd9
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch/diff/9e4a5cd9

Branch: refs/heads/master
Commit: 9e4a5cd921c55697f066a61c59ae8646222f06ea
Parents: 9c68ae3
Author: ILYA Khlopotov <iilyak@apache.org>
Authored: Wed Feb 8 12:05:17 2017 -0800
Committer: ILYA Khlopotov <iilyak@apache.org>
Committed: Wed Feb 8 12:25:45 2017 -0800

----------------------------------------------------------------------
 src/test_request.erl | 21 +++++++++++----------
 1 file changed, 11 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/9e4a5cd9/src/test_request.erl
----------------------------------------------------------------------
diff --git a/src/test_request.erl b/src/test_request.erl
index 5bbd0ac..8dd0d1a 100644
--- a/src/test_request.erl
+++ b/src/test_request.erl
@@ -20,45 +20,46 @@
 -export([request/3, request/4]).
 
 get(Url) ->
-    request(get, Url, []).
+    get(Url, []).
 
 get(Url, Headers) ->
-    request(get, Url, Headers).
+    get(Url, Headers, []).
+
 get(Url, Headers, Opts) ->
     request(get, Url, Headers, [], Opts).
 
 post(Url, Body) ->
-    request(post, Url, [], Body).
+    post(Url, [], Body).
 
 post(Url, Headers, Body) ->
-    request(post, Url, Headers, Body).
+    post(Url, Headers, Body, []).
 
 post(Url, Headers, Body, Opts) ->
     request(post, Url, Headers, Body, Opts).
 
 put(Url, Body) ->
-    request(put, Url, [], Body).
+    put(Url, [], Body).
 
 put(Url, Headers, Body) ->
-    request(put, Url, Headers, Body).
+    put(Url, Headers, Body, []).
 
 put(Url, Headers, Body, Opts) ->
     request(put, Url, Headers, Body, Opts).
 
 delete(Url) ->
-    request(delete, Url, []).
+    delete(Url, []).
 
 delete(Url, Opts) ->
-    request(delete, Url, [], [], Opts).
+    delete(Url, [], Opts).
 
 delete(Url, Headers, Opts) ->
     request(delete, Url, Headers, [], Opts).
 
 options(Url) ->
-    request(options, Url, []).
+    options(Url, []).
 
 options(Url, Headers) ->
-    request(options, Url, Headers).
+    options(Url, Headers, []).
 
 options(Url, Headers, Opts) ->
     request(options, Url, Headers, [], Opts).


Mime
View raw message