@Override
public DefaultRequestBodyUriSpec header(String headerValue) {
String[] header = headerValue.split(":");
getHeaders().add(header[0], header[1]);
return this;
}
Users can add headers using only one parameter.
If there are any mistakes, please comment. Thanks!
Comment From: pivotal-cla
@SonYoonSeok Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.
Comment From: pivotal-cla
@SonYoonSeok Thank you for signing the Contributor License Agreement!
Comment From: sbrannen
Hi @SonYoonSeok,
Thanks for submitting your first PR for the Spring Framework.
Please note, however, that this functionality is already available via org.springframework.web.reactive.function.client.DefaultWebClient.DefaultRequestBodyUriSpec.header(String, String...)
.
The first string is the header name, and subsequent strings are the header values.
In light of that, I am closing this PR.