Package com.couchbase.client.java.http
Class CommonHttpOptions<SELF extends CommonHttpOptions<SELF>>
- java.lang.Object
-
- com.couchbase.client.java.CommonOptions<SELF>
-
- com.couchbase.client.java.http.CommonHttpOptions<SELF>
-
- Direct Known Subclasses:
HttpDeleteOptions
,HttpGetOptions
,HttpPostOptions
,HttpPutOptions
public class CommonHttpOptions<SELF extends CommonHttpOptions<SELF>> extends CommonOptions<SELF>
Options common to all HTTP requests.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
CommonHttpOptions.BuiltCommonHttpOptions
-
Nested classes/interfaces inherited from class com.couchbase.client.java.CommonOptions
CommonOptions.BuiltCommonOptions
-
-
Constructor Summary
Constructors Constructor Description CommonHttpOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SELF
header(String name, String value)
Specifies a header to include in the request.-
Methods inherited from class com.couchbase.client.java.CommonOptions
clientContext, parentSpan, retryStrategy, self, timeout
-
-
-
-
Method Detail
-
header
public SELF header(String name, String value)
Specifies a header to include in the request. May be called multiple times to specify multiple headers.Only a few niche requests require setting a header; most of the time you can ignore this option.
NOTE: The "Content-Type" header is set automatically based on the
HttpBody
.
-
-