@ -98,7 +98,7 @@ public interface ClientResponse {
@@ -98,7 +98,7 @@ public interface ClientResponse {
Headers headers ( ) ;
/ * *
* Return cookies of this response .
* Return the cookies of this response .
* /
MultiValueMap < String , ResponseCookie > cookies ( ) ;
@ -148,7 +148,7 @@ public interface ClientResponse {
@@ -148,7 +148,7 @@ public interface ClientResponse {
< T > Flux < T > bodyToFlux ( ParameterizedTypeReference < T > elementTypeRef ) ;
/ * *
* Releases the body of this response .
* Release the body of this response .
* @return a completion signal
* @since 5 . 2
* @see org . springframework . core . io . buffer . DataBufferUtils # release ( DataBuffer )
@ -206,11 +206,11 @@ public interface ClientResponse {
@@ -206,11 +206,11 @@ public interface ClientResponse {
/ * *
* Return a log message prefix to use to correlate messages for this exchange .
* The prefix is based on { @linkplain ClientRequest # logPrefix ( ) } , which
* < p > The prefix is based on { @linkplain ClientRequest # logPrefix ( ) } , which
* itself is based on the value of the { @link ClientRequest # LOG_ID_ATTRIBUTE
* LOG_ID_ATTRIBUTE } request attribute , further surrounded with "[" and "]" .
* @return the log message prefix or an empty String if the
* { @link ClientRequest # LOG_ID_ATTRIBUTE LOG_ID_ATTRIBUTE } is not set .
* { @link ClientRequest # LOG_ID_ATTRIBUTE LOG_ID_ATTRIBUTE } is not set
* @since 5 . 2 . 3
* /
String logPrefix ( ) ;
@ -305,7 +305,7 @@ public interface ClientResponse {
@@ -305,7 +305,7 @@ public interface ClientResponse {
List < String > header ( String headerName ) ;
/ * *
* Return the headers as a { @link HttpHeaders } instance .
* Return the headers as an { @link HttpHeaders } instance .
* /
HttpHeaders asHttpHeaders ( ) ;
}
@ -318,14 +318,14 @@ public interface ClientResponse {
@@ -318,14 +318,14 @@ public interface ClientResponse {
/ * *
* Set the status code of the response .
* @param statusCode the new status code .
* @param statusCode the new status code
* @return this builder
* /
Builder statusCode ( HttpStatus statusCode ) ;
/ * *
* Set the raw status code of the response .
* @param statusCode the new status code .
* @param statusCode the new status code
* @return this builder
* @since 5 . 1 . 9
* /
@ -333,7 +333,7 @@ public interface ClientResponse {
@@ -333,7 +333,7 @@ public interface ClientResponse {
/ * *
* Add the given header value ( s ) under the given name .
* @param headerName the header name
* @param headerName the header name
* @param headerValues the header value ( s )
* @return this builder
* @see HttpHeaders # add ( String , String )
@ -341,11 +341,11 @@ public interface ClientResponse {
@@ -341,11 +341,11 @@ public interface ClientResponse {
Builder header ( String headerName , String . . . headerValues ) ;
/ * *
* Manipulate this response ' s headers with the given consumer . The
* headers provided to the consumer are "live" , so that the consumer can be used to
* { @linkplain HttpHeaders # set ( String , String ) overwrite } existing header values ,
* { @linkplain HttpHeaders # remove ( Object ) remove } values , or use any of the other
* { @link HttpHeaders } methods .
* Manipulate this response ' s headers with the given consumer .
* < p > The headers provided to the consumer are "live" , so that the consumer
* can be used to { @linkplain HttpHeaders # set ( String , String ) overwrite }
* existing header values , { @linkplain HttpHeaders # remove ( Object ) remove }
* values , or use any of the other { @link HttpHeaders } methods .
* @param headersConsumer a function that consumes the { @code HttpHeaders }
* @return this builder
* /
@ -360,9 +360,9 @@ public interface ClientResponse {
@@ -360,9 +360,9 @@ public interface ClientResponse {
Builder cookie ( String name , String . . . values ) ;
/ * *
* Manipulate this response ' s cookies with the given consumer . The
* map provided to the consumer is "live" , so that the consumer can be used to
* { @linkplain MultiValueMap # set ( Object , Object ) overwrite } existing header values ,
* Manipulate this response ' s cookies with the given consumer .
* < p > The map provided to the consumer is "live" , so that the consumer can be used to
* { @linkplain MultiValueMap # set ( Object , Object ) overwrite } existing cookie values ,
* { @linkplain MultiValueMap # remove ( Object ) remove } values , or use any of the other
* { @link MultiValueMap } methods .
* @param cookiesConsumer a function that consumes the cookies map
@ -371,20 +371,21 @@ public interface ClientResponse {
@@ -371,20 +371,21 @@ public interface ClientResponse {
Builder cookies ( Consumer < MultiValueMap < String , ResponseCookie > > cookiesConsumer ) ;
/ * *
* Set the body of the response . Calling this methods will
* Set the body of the response .
* < p > Calling this methods will
* { @linkplain org . springframework . core . io . buffer . DataBufferUtils # release ( DataBuffer ) release }
* the existing body of the builder .
* @param body the new body .
* @param body the new body
* @return this builder
* /
Builder body ( Flux < DataBuffer > body ) ;
/ * *
* Set the body of the response to the UTF - 8 encoded bytes of the given string .
* Calling this methods will
* < p > Calling this methods will
* { @linkplain org . springframework . core . io . buffer . DataBufferUtils # release ( DataBuffer ) release }
* the existing body of the builder .
* @param body the new body .
* @param body the new body
* @return this builder
* /
Builder body ( String body ) ;