ClientOptionsBuilder extends AbstractClientOptionsBuilder { @Override public ClientOptionsBuilder addHeader(CharSequence name, Object value) { return (ClientOptionsBuilder) super.addHeader(name, value); } ClientOptionsBuilder();   ClientOptionsBuilder(ClientOptions options); ClientOptions build(); @Override ClientOptionsBuilder options(ClientOptions options); @Override ClientOptionsBuilder options(ClientOptionValue<?>... options); @Override ClientOptionsBuilder options(Iterable<ClientOptionValue<?>> options); @Override ClientOptionsBuilder option(ClientOption<T> option, T value); @Override ClientOptionsBuilder option(ClientOptionValue<T> optionValue); @Override ClientOptionsBuilder factory(ClientFactory factory); @Override ClientOptionsBuilder writeTimeout(Duration writeTimeout); @Override ClientOptionsBuilder writeTimeoutMillis(long writeTimeoutMillis); @Override ClientOptionsBuilder responseTimeout(Duration responseTimeout); @Override ClientOptionsBuilder responseTimeoutMillis(long responseTimeoutMillis); @Override ClientOptionsBuilder maxResponseLength(long maxResponseLength); @Override ClientOptionsBuilder requestIdGenerator(Supplier<RequestId> requestIdGenerator); @Override ClientOptionsBuilder endpointRemapper(
            Function<? super Endpoint, ? extends EndpointGroup> endpointRemapper); @Override ClientOptionsBuilder decorator(
            Function<? super HttpClient, ? extends HttpClient> decorator); @Override ClientOptionsBuilder decorator(DecoratingHttpClientFunction decorator); @Override ClientOptionsBuilder clearDecorators(); @Override ClientOptionsBuilder rpcDecorator(
            Function<? super RpcClient, ? extends RpcClient> decorator); @Override ClientOptionsBuilder rpcDecorator(DecoratingRpcClientFunction decorator); @Override ClientOptionsBuilder addHeader(CharSequence name, Object value); @Override ClientOptionsBuilder addHeaders(
            Iterable<? extends Entry<? extends CharSequence, ?>> headers); @Override ClientOptionsBuilder setHeader(CharSequence name, Object value); @Override ClientOptionsBuilder setHeaders(
            Iterable<? extends Entry<? extends CharSequence, ?>> headers); @Override ClientOptionsBuilder auth(BasicToken token); @Override ClientOptionsBuilder auth(OAuth1aToken token); @Override ClientOptionsBuilder auth(OAuth2Token token);  }
@Test void testAddHeader() { final ClientOptionsBuilder b = ClientOptions.builder(); b.addHeader(HttpHeaderNames.AUTHORIZATION, "Basic QWxhZGRpbjpPcGVuU2VzYW1l"); b.addHeader(HttpHeaderNames.AUTHORIZATION, "Lost token"); assertThat(b.build().headers().getAll(HttpHeaderNames.AUTHORIZATION)).containsExactly( "Basic QWxhZGRpbjpPcGVuU2VzYW1l", "Lost token"); }