@@ -75,7 +75,7 @@ private GitHubRequest(@Nonnull List<Entry> args,
7575
7676 /**
7777 * Create a new {@link Builder}.
78- *
78+ *
7979 * @return a new {@link Builder}.
8080 */
8181 public static Builder <?> newBuilder () {
@@ -165,7 +165,7 @@ public Map<String, Object> injectedMappingValues() {
165165
166166 /**
167167 * The base GitHub API URL for this request represented as a {@link String}
168- *
168+ *
169169 * @return the url string
170170 */
171171 @ Nonnull
@@ -176,7 +176,7 @@ public String apiUrl() {
176176 /**
177177 * The url path to be added to the {@link #apiUrl()} for this request. If this does not start with a "/", it instead
178178 * represents the full url string for this request.
179- *
179+ *
180180 * @return a url path or full url string
181181 */
182182 @ Nonnull
@@ -186,7 +186,7 @@ public String urlPath() {
186186
187187 /**
188188 * The content type to to be sent by this request.
189- *
189+ *
190190 * @return the content type.
191191 */
192192 @ Nonnull
@@ -196,7 +196,7 @@ public String contentType() {
196196
197197 /**
198198 * The {@link InputStream} to be sent as the body of this request.
199- *
199+ *
200200 * @return the {@link InputStream}.
201201 */
202202 @ CheckForNull
@@ -206,7 +206,7 @@ public InputStream body() {
206206
207207 /**
208208 * The {@link URL} for this request. This is the actual URL the {@link GitHubClient} will send this request to.
209- *
209+ *
210210 * @return the request {@link URL}
211211 */
212212 @ Nonnull
@@ -216,7 +216,7 @@ public URL url() {
216216
217217 /**
218218 * Whether arguments for this request should be included in the URL or in the body of the request.
219- *
219+ *
220220 * @return true if the arguements should be sent in the body of the request.
221221 */
222222 public boolean inBody () {
@@ -226,7 +226,7 @@ public boolean inBody() {
226226 /**
227227 * Create a {@link Builder} from this request. Initial values of the builder will be the same as this
228228 * {@link GitHubRequest}.
229- *
229+ *
230230 * @return a {@link Builder} based on this request.
231231 */
232232 public Builder <?> toBuilder () {
@@ -346,7 +346,7 @@ private Builder(@Nonnull List<Entry> args,
346346
347347 /**
348348 * Builds a {@link GitHubRequest} from this builder.
349- *
349+ *
350350 * @return a {@link GitHubRequest}
351351 * @throws MalformedURLException
352352 * if the GitHub API URL cannot be constructed
@@ -437,6 +437,21 @@ public B withPreview(String name) {
437437 return withHeader ("Accept" , name );
438438 }
439439
440+ /**
441+ * With requester.
442+ *
443+ * @param Map
444+ * map of key value pairs to add
445+ * @return the request builder
446+ */
447+ public B with (Map <String , Object > map ) {
448+ for (Map .Entry <String , Object > entry : map .entrySet ()) {
449+ with (entry .getKey (), entry .getValue ());
450+ }
451+
452+ return (B ) this ;
453+ }
454+
440455 /**
441456 * With requester.
442457 *
0 commit comments