Class HttpHeaderMap


  • public class HttpHeaderMap
    extends MultiValueMap
    A map for HttpHeaders.
    • Constructor Detail

      • HttpHeaderMap

        public HttpHeaderMap()
        Constructor for an empty map.
      • HttpHeaderMap

        public HttpHeaderMap​(java.util.Map<java.lang.String,​?> initialValues)
        Constructor
        Parameters:
        initialValues - A map of initial values. The values need to be either String or Collection<String>.
    • Method Detail

      • addHeaders

        public void addHeaders​(java.net.http.HttpRequest.Builder builder)
        Add the headers of this map to the HttpRequest.Builder.
        Parameters:
        builder - The builder which will receive the headers.