public Response put(Cluster cluster, String path, Header[] headers, byte[] content)
    throws IOException {
    HttpPut method = new HttpPut(path);
    try {
      method.setEntity(new ByteArrayEntity(content));
      HttpResponse resp = execute(cluster, method, headers, path);
      headers = resp.getAllHeaders();
      content = getResponseBody(resp);
      return new Response(resp.getStatusLine().getStatusCode(), headers, content);
    } finally {
      method.releaseConnection();
    }
  }
Send a PUT request
@param cluster the cluster definition
@param path    the path or URI
@param headers the HTTP headers to include, <tt>Content-Type</tt> must be supplied
@param content the content bytes
@return a Response object with response detail
hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/client/Client.java