Class CommonHttpOptions<SELF extends CommonHttpOptions<SELF>>

    • Constructor Detail

      • CommonHttpOptions

        public CommonHttpOptions()
    • 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.