Closed adrienverge closed 4 years ago
In hindsight, I wish the method would be just be called info()
like CouchDB.info()
:(
Mario, I think only my team is using this function for now. I have no problem with renaming it to .info()
, which would be an acceptable breaking change for 1.1.0. Do you want me to make a PR? (or maybe you prefer to push it right away?)
There are situations when it's useful to send a tiny HTTP
HEAD /db/doc
request, to retrieve only the document current revision.I propose to add a method to retrieve this info:
The output is similar to what a HTTP
PUT /db/doc
would return.Note: the new
return_response
argument forRemoteServer._request()
will be reused in a future commit (for attachments).