src/main/java/org/lightcouch/CouchDbClientBase.java
public Response post(Object object) {
		assertNotEmpty(object, "object");
		HttpResponse response = null;
		try { 
			URI uri = buildUri(getDBUri()).build();
			response = post(uri, getGson().toJson(object));
			return getResponse(response);
		} finally {
			close(response);
		}
	}
public Response post(Object object) {
		assertNotEmpty(object, "object");
		HttpResponse response = null;
		try { 
			URI uri = buildUri(getDBUri()).build();
			response = post(uri, getGson().toJson(object));
			return getResponse(response);
		} finally {
			close(response);
		}
	}
public Response post ( Object object ) { assertNotEmpty ( object , "object" ) ; HttpResponse response = null ; try { URI uri = buildUri ( getDBUri ( ) ) . build ( ) ; response = post ( uri , getGson ( ) . toJson ( object ) ) ; return getResponse ( response ) ; } finally { close ( response ) ; } }
Saves an object in the database using HTTP <tt>POST</tt> request.
<p>The database will be responsible for generating the document id.
@param object The object to save
@return {@link Response}
Saves an object in the database using HTTP <tt > POST< / tt > request . <p > The database will be responsible for generating the document id .