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
Options common to all HTTP requests.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.couchbase.client.java.CommonOptions
CommonOptions.BuiltCommonOptions
-
Constructor Summary
-
Method Summary
Methods inherited from class com.couchbase.client.java.CommonOptions
clientContext, parentSpan, retryStrategy, self, timeout
-
Constructor Details
-
CommonHttpOptions
public CommonHttpOptions()
-
-
Method Details
-
header
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
.
-