@@ -209,22 +209,6 @@ public static BodyBuilder method(HttpMethod method, String uri, @Nullable Object
209
209
return method (method , toUri (uri , vars ));
210
210
}
211
211
212
- /**
213
- * Create a builder with a raw HTTP method value that is outside the
214
- * range of {@link HttpMethod} enum values.
215
- * @param httpMethod the HTTP methodValue value
216
- * @param uri the URI template for target the URL
217
- * @param vars variables to expand into the template
218
- * @return the created builder
219
- * @since 5.2.7
220
- * @deprecated as of Spring Framework 6.0 in favor of {@link #method(HttpMethod, String, Object...)}
221
- */
222
- @ Deprecated (since = "6.0" )
223
- public static BodyBuilder method (String httpMethod , String uri , @ Nullable Object ... vars ) {
224
- Assert .hasText (httpMethod , "HTTP method is required." );
225
- return new DefaultBodyBuilder (HttpMethod .valueOf (httpMethod ), toUri (uri , vars ));
226
- }
227
-
228
212
private static URI toUri (String uri , @ Nullable Object [] vars ) {
229
213
return UriComponentsBuilder .fromUriString (uri ).buildAndExpand (vars ).encode ().toUri ();
230
214
}
@@ -295,14 +279,6 @@ public interface BaseBuilder<B extends BaseBuilder<B>> {
295
279
*/
296
280
B header (String headerName , String ... headerValues );
297
281
298
- /**
299
- * Add the given header values.
300
- * @param headers the header values
301
- * @deprecated Use {@link #headers(HttpHeaders)}
302
- */
303
- @ Deprecated
304
- B headers (MultiValueMap <String , String > headers );
305
-
306
282
/**
307
283
* Add the given header values.
308
284
* @param headers the header values
@@ -491,13 +467,6 @@ public BodyBuilder header(String headerName, String... headerValues) {
491
467
return this ;
492
468
}
493
469
494
- @ Override
495
- @ Deprecated
496
- public BodyBuilder headers (MultiValueMap <String , String > headers ) {
497
- this .headers .putAll (headers );
498
- return this ;
499
- }
500
-
501
470
@ Override
502
471
public BodyBuilder headers (HttpHeaders headers ) {
503
472
this .headers .putAll (headers );
0 commit comments