public CustomHeadersInterceptor addHeader ( String name , String value ) { if ( ! this . headers . containsKey ( name ) ) { this . headers . put ( name , new ArrayList < String > ( ) ) ; } this . headers . get ( name ) . add ( value ) ; return this ; }
Add a single header key - value pair . If one with the name already exists both stay in the header map .