/** * Requires {@link #action} and {@link #path}. */ public Request build() { checkState(action != null, "Missing: action"); checkState(path != null, "Missing: path"); return new Request(attributes(), headers(), action, path, parameters(), payload, multipart, multiparts); } }
public Builder header(final String name, final String... values) { headers().set(name, values); return this; }