< prev index next >

src/java.httpclient/share/classes/java/net/http/ResponseHeaders.java

Print this page

        

*** 46,56 **** * The location of "Content-length" is recorded explicitly. Similar approach * could be taken for other common headers. * * This class is not thread-safe */ ! class ResponseHeaders implements HttpHeaders1 { static final int DATA_SIZE = 16 * 1024; // initial space for headers static final int NUM_HEADERS = 50; // initial expected max number of headers final HttpConnection connection; --- 46,56 ---- * The location of "Content-length" is recorded explicitly. Similar approach * could be taken for other common headers. * * This class is not thread-safe */ ! class ResponseHeaders implements HttpHeaders { static final int DATA_SIZE = 16 * 1024; // initial space for headers static final int NUM_HEADERS = 50; // initial expected max number of headers final HttpConnection connection;
*** 366,379 **** l = populateMapEntry(name); } return Collections.unmodifiableList(l); } - @Override - public void makeUnmodifiable() { - } - // Delegates map to HashMap but converts keys to lower case static class HeaderMap implements Map<String,List<String>> { Map<String,List<String>> inner; --- 366,375 ----
< prev index next >