@@ -185,6 +185,7 @@ private class DefaultRequestBodyUriSpec implements RequestBodyUriSpec {
185185 this .httpMethod = httpMethod ;
186186 }
187187
188+
188189 @ Override
189190 public RequestBodySpec uri (String uriTemplate , Object ... uriVariables ) {
190191 attribute (URI_TEMPLATE_ATTRIBUTE , uriTemplate );
@@ -242,18 +243,6 @@ public DefaultRequestBodyUriSpec headers(Consumer<HttpHeaders> headersConsumer)
242243 return this ;
243244 }
244245
245- @ Override
246- public RequestBodySpec attribute (String name , Object value ) {
247- this .attributes .put (name , value );
248- return this ;
249- }
250-
251- @ Override
252- public RequestBodySpec attributes (Consumer <Map <String , Object >> attributesConsumer ) {
253- attributesConsumer .accept (this .attributes );
254- return this ;
255- }
256-
257246 @ Override
258247 public DefaultRequestBodyUriSpec accept (MediaType ... acceptableMediaTypes ) {
259248 getHeaders ().setAccept (Arrays .asList (acceptableMediaTypes ));
@@ -302,6 +291,18 @@ public DefaultRequestBodyUriSpec ifNoneMatch(String... ifNoneMatches) {
302291 return this ;
303292 }
304293
294+ @ Override
295+ public RequestBodySpec attribute (String name , Object value ) {
296+ this .attributes .put (name , value );
297+ return this ;
298+ }
299+
300+ @ Override
301+ public RequestBodySpec attributes (Consumer <Map <String , Object >> attributesConsumer ) {
302+ attributesConsumer .accept (this .attributes );
303+ return this ;
304+ }
305+
305306 @ Override
306307 public RequestBodySpec context (Function <Context , Context > contextModifier ) {
307308 this .contextModifier = (this .contextModifier != null ?
@@ -497,12 +498,14 @@ private static class DefaultResponseSpec implements ResponseSpec {
497498
498499 private final List <StatusHandler > statusHandlers = new ArrayList <>(1 );
499500
501+
500502 DefaultResponseSpec (Mono <ClientResponse > responseMono , Supplier <HttpRequest > requestSupplier ) {
501503 this .responseMono = responseMono ;
502504 this .requestSupplier = requestSupplier ;
503505 this .statusHandlers .add (DEFAULT_STATUS_HANDLER );
504506 }
505507
508+
506509 @ Override
507510 public ResponseSpec onStatus (Predicate <HttpStatus > statusPredicate ,
508511 Function <ClientResponse , Mono <? extends Throwable >> exceptionFunction ) {
0 commit comments