diff options
author | Adam Kocoloski <kocolosk@apache.org> | 2009-08-07 19:12:39 +0000 |
---|---|---|
committer | Adam Kocoloski <kocolosk@apache.org> | 2009-08-07 19:12:39 +0000 |
commit | 7f9a155b4614190aeb0ac1e6bbdb7e8bbec32a08 (patch) | |
tree | 73cf8414f81c4024c34e2e0eeaebee7ba0b62c5a /src/couchdb/couch_db.hrl | |
parent | dfea1d87c21bbe8c8d894941fc17c9d617c44b9a (diff) |
ibrowse wrapper for replicator, will replace do_http_request
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@802145 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb/couch_db.hrl')
-rw-r--r-- | src/couchdb/couch_db.hrl | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/couchdb/couch_db.hrl b/src/couchdb/couch_db.hrl index d4e0fbd5..53b2eaf9 100644 --- a/src/couchdb/couch_db.hrl +++ b/src/couchdb/couch_db.hrl @@ -228,5 +228,26 @@ view_states=nil }). +-record(http_db, { + url, + auth = [], + resource = "", + headers = [ + {"User-Agent", "CouchDb/"++couch_server:get_version()}, + {"Accept", "application/json"}, + {"Accept-Encoding", "gzip"} + ], + qs = [], + method = get, + body = nil, + options = [ + {response_format,binary}, + {inactivity_timeout, 30000} + ], + retries = 10, + pause = 1, + conn = nil +}). + % small value used in revision trees to indicate the revision isn't stored -define(REV_MISSING, []). |