Added #setHeader methods for completeness

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1518299 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Oleg Kalnichevski 2013-08-28 17:49:58 +00:00
parent d6216b4257
commit 9d0d524530
1 changed files with 17 additions and 1 deletions

View File

@ -154,11 +154,27 @@ public class Request {
return this;
}
/**
* @since 4.3
*/
public Request setHeader(final Header header) {
this.request.setHeader(header);
return this;
}
public Request addHeader(final String name, final String value) {
this.request.addHeader(name, value);
return this;
}
/**
* @since 4.3
*/
public Request setHeader(final String name, final String value) {
this.request.setHeader(name, value);
return this;
}
public Request removeHeader(final Header header) {
this.request.removeHeader(header);
return this;
@ -169,7 +185,7 @@ public class Request {
return this;
}
public Request setHeaders(final Header[] headers) {
public Request setHeaders(final Header... headers) {
this.request.setHeaders(headers);
return this;
}