/** * Sets the client version by setting the value for the <js>"X-Client-Version"</js> header. * * @param version The version string (e.g. <js>"1.2.3"</js>) * @return This object (for method chaining). */ public RestClientBuilder clientVersion(String version) { return header("X-Client-Version", version); }
/** * Sets the value for the <code>Accept-Encoding</code> request header. * * <p> * This is a shortcut for calling <code>header(<js>"Accept-Encoding"</js>, value);</code> * * @param value The new header value. * @return This object (for method chaining). */ public RestClientBuilder acceptEncoding(Object value) { return header("Accept-Encoding", value); }
/** * Sets the value for the <code>From</code> request header. * * <p> * This is a shortcut for calling <code>header(<js>"From"</js>, value);</code> * * @param value The new header value. * @return This object (for method chaining). */ public RestClientBuilder from(Object value) { return header("From", value); }
/** * Sets the value for the <code>TE</code> request header. * * <p> * This is a shortcut for calling <code>header(<js>"TE"</js>, value);</code> * * @param value The new header value. * @return This object (for method chaining). */ public RestClientBuilder te(Object value) { return header("TE", value); }
/** * Sets the value for the <code>If-Modified-Since</code> request header. * * <p> * This is a shortcut for calling <code>header(<js>"If-Modified-Since"</js>, value);</code> * * @param value The new header value. * @return This object (for method chaining). */ public RestClientBuilder ifModifiedSince(Object value) { return header("If-Modified-Since", value); }
/** * Sets the value for the <code>Accept-Encoding</code> request header. * * <p> * This is a shortcut for calling <code>header(<js>"Accept-Encoding"</js>, value);</code> * * @param value The new header value. * @return This object (for method chaining). */ public RestClientBuilder acceptEncoding(Object value) { return header("Accept-Encoding", value); }
/** * Sets the value for the <code>Content-Length</code> request header. * * <p> * This is a shortcut for calling <code>header(<js>"Content-Length"</js>, value);</code> * * @param value The new header value. * @return This object (for method chaining). */ public RestClientBuilder contentLength(Object value) { return header("Content-Length", value); }
/** * Sets the value for the <code>Forwarded</code> request header. * * <p> * This is a shortcut for calling <code>header(<js>"Forwarded"</js>, value);</code> * * @param value The new header value. * @return This object (for method chaining). */ public RestClientBuilder forwarded(Object value) { return header("Forwarded", value); }
/** * Sets the value for the <code>Upgrade</code> request header. * * <p> * This is a shortcut for calling <code>header(<js>"Upgrade"</js>, value);</code> * * @param value The new header value. * @return This object (for method chaining). */ public RestClientBuilder upgrade(Object value) { return header("Upgrade", value); }
/** * Sets the value for the <code>From</code> request header. * * <p> * This is a shortcut for calling <code>header(<js>"From"</js>, value);</code> * * @param value The new header value. * @return This object (for method chaining). */ public RestClientBuilder from(Object value) { return header("From", value); }
/** * Sets the value for the <code>Host</code> request header. * * <p> * This is a shortcut for calling <code>header(<js>"Host"</js>, value);</code> * * @param value The new header value. * @return This object (for method chaining). */ public RestClientBuilder host(Object value) { return header("Host", value); }
/** * Sets the value for the <code>Max-Forwards</code> request header. * * <p> * This is a shortcut for calling <code>header(<js>"Max-Forwards"</js>, value);</code> * * @param value The new header value. * @return This object (for method chaining). */ public RestClientBuilder maxForwards(Object value) { return header("If-Unmodified-Since", value); }
/** * Sets the value for the <code>Connection</code> request header. * * <p> * This is a shortcut for calling <code>header(<js>"Connection"</js>, value);</code> * * @param value The new header value. * @return This object (for method chaining). */ public RestClientBuilder connection(Object value) { return header("Connection", value); }
/** * Sets the value for the <code>Expect</code> request header. * * <p> * This is a shortcut for calling <code>header(<js>"Expect"</js>, value);</code> * * @param value The new header value. * @return This object (for method chaining). */ public RestClientBuilder expect(Object value) { return header("Expect", value); }
/** * Sets the value for the <code>Max-Forwards</code> request header. * * <p> * This is a shortcut for calling <code>header(<js>"Max-Forwards"</js>, value);</code> * * @param value The new header value. * @return This object (for method chaining). */ public RestClientBuilder maxForwards(Object value) { return header("If-Unmodified-Since", value); }
/** * Sets the value for the <code>Range</code> request header. * * <p> * This is a shortcut for calling <code>header(<js>"Range"</js>, value);</code> * * @param value The new header value. * @return This object (for method chaining). */ public RestClientBuilder range(Object value) { return header("Range", value); }
/** * Sets the value for the <code>User-Agent</code> request header. * * <p> * This is a shortcut for calling <code>header(<js>"User-Agent"</js>, value);</code> * * @param value The new header value. * @return This object (for method chaining). */ public RestClientBuilder userAgent(Object value) { return header("User-Agent", value); }
/** * Sets the value for the <code>Cache-Control</code> request header. * * <p> * This is a shortcut for calling <code>header(<js>"Cache-Control"</js>, value);</code> * * @param value The new header value. * @return This object (for method chaining). */ public RestClientBuilder cacheControl(Object value) { return header("Cache-Control", value); }
/** * Sets the value for the <code>If-None-Match</code> request header. * * <p> * This is a shortcut for calling <code>header(<js>"If-None-Match"</js>, value);</code> * * @param value The new header value. * @return This object (for method chaining). */ public RestClientBuilder ifNoneMatch(Object value) { return header("If-None-Match", value); }
/** * Sets the value for the <code>Range</code> request header. * * <p> * This is a shortcut for calling <code>header(<js>"Range"</js>, value);</code> * * @param value The new header value. * @return This object (for method chaining). */ public RestClientBuilder range(Object value) { return header("Range", value); }