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.
  • Constructor Details

    • CommonHttpOptions

      public CommonHttpOptions()
  • Method Details

    • 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.