protected Map < String , String > getHeaders ( HttpResponse resp ) { final Map < String , String > headersAndValues = new HashMap < String , String > ( ) ; final Header [ ] httpHeaders = resp . getAllHeaders ( ) ; for ( Header header : httpHeaders ) { headersAndValues . put ( header . getName ( ) , header . getValue ( ) ) ; } return headersAndValues ; }
Get the headers from the response .