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:
parent
d6216b4257
commit
9d0d524530
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue