public CustomHeadersInterceptor addHeaderMap ( Map < String , String > headers ) { for ( Map . Entry < String , String > header : headers . entrySet ( ) ) { this . headers . put ( header . getKey ( ) , Collections . singletonList ( header . getValue ( ) ) ) ; } return this ; }
Add all headers in a header map .