io.joshworks.restclient.http.Headers Maven / Gradle / Ivy
package io.joshworks.restclient.http;
import java.util.HashMap;
import java.util.List;
public class Headers extends HashMap> {
public String getFirst(Object key) {
List list = get(key);
if (list != null && !list.isEmpty()) {
return list.get(0);
}
return null;
}
}