public HttpRequestBuilder addHeader ( String name , String value ) { if ( value != null ) { reqHeaders . put ( name , value ) ; } return this ; }
Add a header to the request . Note the content type will be set automatically when providing the content payload and should not be set here . If the value is null then the header will get ignored .