@ NonNull public ReplicatorConfiguration setHeaders ( Map < String , String > headers ) { if ( readonly ) { throw new IllegalStateException ( "ReplicatorConfiguration is readonly mode." ) ; } this . headers = new HashMap <> ( headers ) ; return getReplicatorConfiguration ( ) ; }
Sets the extra HTTP headers to send in all requests to the remote target .