/** * Adds a collection of HTTP headers to the current list of headers. * * @param headers * the collection of headers * @return this RestData */ public RestData addHeaders(Map<String, String> headers) { for (Map.Entry<String, String> e : headers.entrySet()) { addHeader(e.getKey(), e.getValue()); } return this; }
/** * Adds a collection of HTTP headers to the current list of headers. * * @param headers * the list of headers * @return this RestData */ public RestData addHeaders(List<Header> headers) { for (Header e : headers) { addHeader(e.getName(), e.getValue()); } return this; }