src/java.net.http/share/classes/java/net/http/HttpHeaders.java
branchhttp-client-branch
changeset 56167 96fa4f49a9ff
parent 56099 41ba54ac9403
child 56451 9585061fdb04
equal deleted inserted replaced
56166:56c52d6417d1 56167:96fa4f49a9ff
    34 import static java.util.Objects.requireNonNull;
    34 import static java.util.Objects.requireNonNull;
    35 
    35 
    36 /**
    36 /**
    37  * A read-only view of a set of HTTP headers.
    37  * A read-only view of a set of HTTP headers.
    38  *
    38  *
       
    39  * <p> An {@code HttpHeaders} is not created directly, but rather returned from
       
    40  * an {@link HttpResponse HttpResponse}. Specific HTTP headers can be set for
       
    41  * {@linkplain HttpRequest requests} through the one of the request builder's
       
    42  * {@link HttpRequest.Builder#header(String, String) headers} methods.
       
    43  *
    39  * <p> The methods of this class ( that accept a String header name ), and the
    44  * <p> The methods of this class ( that accept a String header name ), and the
    40  * Map returned by the {@link #map() map} method, operate without regard to
    45  * Map returned by the {@link #map() map} method, operate without regard to
    41  * case when retrieving the header value.
    46  * case when retrieving the header value.
    42  *
    47  *
    43  * <p> HttpHeaders instances are immutable.
    48  * <p> {@code HttpHeaders} instances are immutable.
    44  *
    49  *
    45  * @since 11
    50  * @since 11
    46  */
    51  */
    47 public abstract class HttpHeaders {
    52 public abstract class HttpHeaders {
    48 
    53