hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1518299 - /httpcomponents/httpclient/trunk/fluent-hc/src/main/java/org/apache/http/client/fluent/Request.java
Date Wed, 28 Aug 2013 17:49:59 GMT
Author: olegk
Date: Wed Aug 28 17:49:58 2013
New Revision: 1518299

URL: http://svn.apache.org/r1518299
Log:
Added #setHeader methods for completeness

Modified:
    httpcomponents/httpclient/trunk/fluent-hc/src/main/java/org/apache/http/client/fluent/Request.java

Modified: httpcomponents/httpclient/trunk/fluent-hc/src/main/java/org/apache/http/client/fluent/Request.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/fluent-hc/src/main/java/org/apache/http/client/fluent/Request.java?rev=1518299&r1=1518298&r2=1518299&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/fluent-hc/src/main/java/org/apache/http/client/fluent/Request.java
(original)
+++ httpcomponents/httpclient/trunk/fluent-hc/src/main/java/org/apache/http/client/fluent/Request.java
Wed Aug 28 17:49:58 2013
@@ -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;
     }



Mime
View raw message