Here you can find the source of createHttpFields(InetSocketAddress endpoint)
static ArrayList<String> createHttpFields(InetSocketAddress endpoint)
//package com.java2s; // under the terms of the Eclipse Public License v1.0 which accompanies import java.net.InetSocketAddress; import java.util.ArrayList; public class Main { static ArrayList<String> createHttpFields(InetSocketAddress endpoint) { ArrayList<String> fields = new ArrayList<String>(); fields.add("Connection: Upgrade"); return fields; }//w w w.j av a 2 s .com }