public static String encodeKVHeaderValue(Map<String, String> map) {
      Objects.requireNonNull(map);
      String value =
          map.entrySet().stream().map(e -> e.getKey() + KV_SEPERATOR + e.getValue()).collect(Collectors.joining(DELIM));
      return value;
    }
Encode a map of {@link String}s as http header value.
@param map {@link Map} of {@link String}s to encode.
@return encoded http header value.
ambry-api/src/main/java/com/github/ambry/rest/RestUtils.java