Skip to content

Commit df4ca75

Browse files
authored
fix: remove putHeader Iterable<CharSequence> overload to avoid ambiguity
1 parent 655a3f1 commit df4ca75

File tree

2 files changed

+0
-19
lines changed

2 files changed

+0
-19
lines changed

vertx-web-client/src/main/java/io/vertx/ext/web/client/HttpRequest.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -206,19 +206,6 @@ public interface HttpRequest<T> {
206206
@GenIgnore(GenIgnore.PERMITTED_TYPE)
207207
HttpRequest<T> putHeader(String name, Iterable<String> value);
208208

209-
/**
210-
* Configure the request to set a new HTTP header with multiple values using CharSequence.
211-
* <p>
212-
* This is an overload of {@link #putHeader(String, Iterable)} that accepts CharSequence parameters.
213-
*
214-
* @param name the header name
215-
* @param value the header value
216-
* @return a reference to this, so the API can be used fluently
217-
*/
218-
@Fluent
219-
@GenIgnore(GenIgnore.PERMITTED_TYPE)
220-
HttpRequest<T> putHeader(CharSequence name, Iterable<CharSequence> value);
221-
222209
/**
223210
* @return The HTTP headers
224211
*/

vertx-web-client/src/main/java/io/vertx/ext/web/client/impl/HttpRequestImpl.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -243,12 +243,6 @@ public HttpRequest<T> putHeader(String name, Iterable<String> value) {
243243
return this;
244244
}
245245

246-
@Override
247-
public HttpRequest<T> putHeader(CharSequence name, Iterable<CharSequence> value) {
248-
headers().set(name, value);
249-
return this;
250-
}
251-
252246
@Override
253247
public MultiMap headers() {
254248
if (headers == null) {

0 commit comments

Comments
 (0)