IN - The type that will be received by the clientOUT - The type that will be sent by the clientpublic static class Spec.HttpClient<IN,OUT> extends reactor.bus.spec.DispatcherComponentSpec<Spec.HttpClient<IN,OUT>,HttpClient<IN,OUT>>
HttpClient| Modifier and Type | Method and Description |
|---|---|
Spec.HttpClient<IN,OUT> |
codec(reactor.io.codec.Codec<reactor.io.buffer.Buffer,IN,OUT> codec)
The
Codec to use to encode and decode data. |
protected HttpClient<IN,OUT> |
configure(reactor.core.Dispatcher dispatcher,
reactor.Environment environment) |
Spec.HttpClient<IN,OUT> |
connect(java.net.InetSocketAddress connectAddress)
The address to which this client should connect.
|
Spec.HttpClient<IN,OUT> |
connect(java.lang.String host,
int port)
The host and port to which this client should connect.
|
Spec.HttpClient<IN,OUT> |
options(ClientSocketOptions options)
Set the common
ClientSocketOptions for connections made in this client. |
Spec.HttpClient<IN,OUT> |
ssl(SslOptions sslOptions)
Set the options to use for configuring SSL.
|
public Spec.HttpClient<IN,OUT> options(ClientSocketOptions options)
ClientSocketOptions for connections made in this client.options - The socket options to apply to new connections.public Spec.HttpClient<IN,OUT> ssl(@Nullable SslOptions sslOptions)
null means don't use SSL at all (the
default).sslOptions - The options to set when configuring SSLpublic Spec.HttpClient<IN,OUT> connect(@Nonnull java.lang.String host, int port)
host - The host to connect to.port - The port to connect to.public Spec.HttpClient<IN,OUT> connect(@Nonnull java.net.InetSocketAddress connectAddress)
connectAddress - The address to connect to.public Spec.HttpClient<IN,OUT> codec(@Nullable reactor.io.codec.Codec<reactor.io.buffer.Buffer,IN,OUT> codec)
Codec to use to encode and decode data.codec - The codec to use.protected HttpClient<IN,OUT> configure(reactor.core.Dispatcher dispatcher, reactor.Environment environment)
configure in class reactor.bus.spec.DispatcherComponentSpec<Spec.HttpClient<IN,OUT>,HttpClient<IN,OUT>>