/** * Set a Form url encoded body to this request. * * @param data the x-www-form-urlencoded parameters * @return the modified builder */ public RequestBuilder bodyForm(Map<String, String> data) { Map<String, String[]> arrayValues = new HashMap<>(); for (Entry<String, String> entry: data.entrySet()) { arrayValues.put(entry.getKey(), new String[]{entry.getValue()}); } return bodyFormArrayValues(arrayValues); }
/** * Set a Form url encoded body to this request. * * @param data the x-www-form-urlencoded parameters * @return the modified builder */ public RequestBuilder bodyForm(Map<String, String> data) { Map<String, String[]> arrayValues = new HashMap<>(); for (Entry<String, String> entry: data.entrySet()) { arrayValues.put(entry.getKey(), new String[]{entry.getValue()}); } return bodyFormArrayValues(arrayValues); }
/** * Set a Form url encoded body to this request. * * @param data the x-www-form-urlencoded parameters * @return the modified builder */ public RequestBuilder bodyForm(Map<String, String> data) { Map<String, String[]> arrayValues = new HashMap<>(); for (Entry<String, String> entry: data.entrySet()) { arrayValues.put(entry.getKey(), new String[]{entry.getValue()}); } return bodyFormArrayValues(arrayValues); }