/** * The headers to match on as a varags of Header objects where the values or keys of each header can be either a string or a regex * (for more details of the supported regex syntax see http://docs.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html) * * @param headers the varags of Header objects where the values or keys of each header can be either a string or a regex */ public HttpRequest withHeaders(Header... headers) { this.headers.withEntries(headers); return this; }
/** * The headers to return as a varargs of Header objects * * @param headers varargs of Header objects */ public HttpResponse withHeaders(Header... headers) { this.headers.withEntries(headers); return this; }
/** * The headers to return as a list of Header objects * * @param headers a list of Header objects */ public HttpResponse withHeaders(List<Header> headers) { this.headers.withEntries(headers); return this; }
/** * The headers to match on as a list of Header objects where the values or keys of each header can be either a string or a regex * (for more details of the supported regex syntax see http://docs.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html) * * @param headers the list of Header objects where the values or keys of each header can be either a string or a regex */ public HttpRequest withHeaders(List<Header> headers) { this.headers.withEntries(headers); return this; }
public Headers(List<Header> headers) { withEntries(headers); }
public Headers(Header... headers) { withEntries(headers); }
public Headers clone() { return new Headers().withEntries(getEntries()); } }
/** * The headers to match on as a varags of Header objects where the values or keys of each header can be either a string or a regex * (for more details of the supported regex syntax see http://docs.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html) * * @param headers the varags of Header objects where the values or keys of each header can be either a string or a regex */ public HttpRequest withHeaders(Header... headers) { this.headers.withEntries(headers); return this; }
/** * The headers to match on as a list of Header objects where the values or keys of each header can be either a string or a regex * (for more details of the supported regex syntax see http://docs.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html) * * @param headers the list of Header objects where the values or keys of each header can be either a string or a regex */ public HttpRequest withHeaders(List<Header> headers) { this.headers.withEntries(headers); return this; }
/** * The headers to return as a list of Header objects * * @param headers a list of Header objects */ public HttpResponse withHeaders(List<Header> headers) { this.headers.withEntries(headers); return this; }
/** * The headers to return as a varargs of Header objects * * @param headers varargs of Header objects */ public HttpResponse withHeaders(Header... headers) { this.headers.withEntries(headers); return this; }
public Headers(Header... headers) { withEntries(headers); }
public Headers(List<Header> headers) { withEntries(headers); }
public Headers clone() { return new Headers().withEntries(getEntries()); } }