private void addHeaders ( HttpRequest request , Map < String , String > headers ) { for ( Map . Entry < String , String > key : headers . entrySet ( ) ) { request . addHeader ( key . getKey ( ) , key . getValue ( ) ) ; } }
Set the request headers .