public static String getFirstHeader ( String headerName , HttpResponse httpResponse ) { Header header = httpResponse . getFirstHeader ( headerName ) ; if ( header != null ) { return header . getValue ( ) ; } return null ; }
Get the value of the first header matching headerName .