public String[] headers(final String name){
  final Map<String,List<String>> headers=headers();
  if (headers == null || headers.isEmpty())   return EMPTY_STRINGS;
  final List<String> values=headers.get(name);
  if (values != null && !values.isEmpty())   return values.toArray(new String[values.size()]);
 else   return EMPTY_STRINGS;
}

public String [ ] headers ( final String name ) { final Map < String , List < String > > headers = headers ( ) ; if ( headers == null || headers . isEmpty ( ) ) return EMPTY_STRINGS ; final List < String > values = headers . get ( name ) ; if ( values != null && ! values . isEmpty ( ) ) return values . toArray ( new String [ values . size ( ) ] ) ; else return EMPTY_STRINGS ; }
get all values of the given header from the response
