Here you can find the source of setHeader(final HttpURLConnection couchdbConnection, final String headerName, final String headerValue)
private static void setHeader(final HttpURLConnection couchdbConnection, final String headerName, final String headerValue)
//package com.java2s; //License from project: Open Source License import java.net.HttpURLConnection; public class Main { private static void setHeader(final HttpURLConnection couchdbConnection, final String headerName, final String headerValue) { couchdbConnection.setRequestProperty(headerName, headerValue); }//from w w w . ja v a 2 s. c o m }