All Downloads are FREE. Search and download functionalities are using the official Maven repository.

Explore the source code of the class Headers.java

package com.mashape.unirest.http;

import java.util.HashMap;
import java.util.List;

public class Headers extends HashMap> {

	private static final long serialVersionUID = 71310341388734766L;

	public String getFirst(Object key) {
		List list = get(key);
		if (list != null && list.size() > 0) {
			return list.get(0);
		}
		return null;
	}
	
}