src/java.net.http/share/classes/jdk/internal/net/http/common/HttpHeadersImpl.java
branchhttp-client-branch
changeset 56166 56c52d6417d1
parent 56092 fd85b2bf2b0d
child 56185 f195e5048667
equal deleted inserted replaced
56165:8a6065d830b9 56166:56c52d6417d1
    68     public void setHeader(String name, String value) {
    68     public void setHeader(String name, String value) {
    69         List<String> values = new ArrayList<>(1); // most headers has one value
    69         List<String> values = new ArrayList<>(1); // most headers has one value
    70         values.add(value);
    70         values.add(value);
    71         headers.put(name, values);
    71         headers.put(name, values);
    72     }
    72     }
       
    73 
       
    74     public void clear() {
       
    75         headers.clear();
       
    76     }
    73 }
    77 }