Java HTTP Header setHeader(final HttpURLConnection couchdbConnection, final String headerName, final String headerValue)

Here you can find the source of setHeader(final HttpURLConnection couchdbConnection, final String headerName, final String headerValue)

Description

set Header

License

Open Source License

Declaration

private static void setHeader(final HttpURLConnection couchdbConnection, final String headerName,
            final String headerValue) 

Method Source Code

//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
}

Related

  1. getServerHeader(URL httpURL)
  2. getURLHeaders(String u)
  3. printHeaderFields(final URL url)
  4. printHttpURLConnectionHeaders(HttpURLConnection httpURLConnection)
  5. readHeadersFromResponse(HttpURLConnection httpURLConnection)
  6. setHeader(HttpURLConnection con, Map headers)
  7. setHeader(HttpURLConnection urlConnection, String key, String value)
  8. setHeaders(HttpURLConnection conn, List headers, String encoding)
  9. setHeadersToRequest(HttpURLConnection urlConnection, Map headersMap)