couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chewbra...@apache.org
Subject [42/50] couch commit: updated refs/heads/2080-port-cors-to-chttpd to 529339b
Date Tue, 02 Jun 2015 19:36:13 GMT
Pass Opts to put/post/delete of test_request

We need to pass auth in Opts sometimes.

COUCHDB-2689


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

Branch: refs/heads/2080-port-cors-to-chttpd
Commit: a135eb04403cfffdbd190cf6853b40ec3dac2376
Parents: 65ed085
Author: ILYA Khlopotov <iilyak@ca.ibm.com>
Authored: Thu May 14 09:07:58 2015 -0700
Committer: ILYA Khlopotov <iilyak@ca.ibm.com>
Committed: Thu May 14 09:07:58 2015 -0700

----------------------------------------------------------------------
 src/test_request.erl | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/a135eb04/src/test_request.erl
----------------------------------------------------------------------
diff --git a/src/test_request.erl b/src/test_request.erl
index 723b1dc..d757593 100644
--- a/src/test_request.erl
+++ b/src/test_request.erl
@@ -13,9 +13,9 @@
 -module(test_request).
 
 -export([get/1, get/2, get/3]).
--export([post/2, post/3]).
--export([put/2, put/3]).
--export([delete/1]).
+-export([post/2, post/3, post/4]).
+-export([put/2, put/3, put/4]).
+-export([delete/1, delete/2]).
 -export([options/1, options/2, options/3]).
 -export([request/3, request/4]).
 
@@ -33,15 +33,24 @@ post(Url, Body) ->
 post(Url, Headers, Body) ->
     request(post, Url, Headers, Body).
 
+post(Url, Headers, Body, Opts) ->
+    request(post, Url, Headers, Body, Opts).
+
 put(Url, Body) ->
     request(put, Url, [], Body).
 
 put(Url, Headers, Body) ->
     request(put, Url, Headers, Body).
 
+put(Url, Headers, Body, Opts) ->
+    request(put, Url, Headers, Body, Opts).
+
 delete(Url) ->
     request(delete, Url, []).
 
+delete(Url, Opts) ->
+    request(delete, Url, [], [], Opts).
+
 options(Url) ->
     request(options, Url, []).
 


Mime
View raw message