public class CommonHttpOptions<SELF extends CommonHttpOptions<SELF>> extends CommonOptions<SELF>
Modifier and Type | Class and Description |
---|---|
class |
CommonHttpOptions.BuiltCommonHttpOptions |
CommonOptions.BuiltCommonOptions
Constructor and Description |
---|
CommonHttpOptions() |
Modifier and Type | Method and Description |
---|---|
SELF |
header(String name,
String value)
Specifies a header to include in the request.
|
clientContext, parentSpan, retryStrategy, self, timeout
public SELF header(String name, String value)
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
.
Copyright © 2024 Couchbase, Inc.. All rights reserved.