public class HttpSenderOptions extends HttpClientOptions
http://localhost:9411/api/v2/spans.| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_SENDER_ENDPOINT |
DEFAULT_ALPN_VERSIONS, DEFAULT_DECODER_INITIAL_BUFFER_SIZE, DEFAULT_DEFAULT_HOST, DEFAULT_DEFAULT_PORT, DEFAULT_FORCE_SNI, DEFAULT_HTTP2_CLEAR_TEXT_UPGRADE, DEFAULT_HTTP2_CONNECTION_WINDOW_SIZE, DEFAULT_HTTP2_KEEP_ALIVE_TIMEOUT, DEFAULT_HTTP2_MAX_POOL_SIZE, DEFAULT_HTTP2_MULTIPLEXING_LIMIT, DEFAULT_KEEP_ALIVE, DEFAULT_KEEP_ALIVE_TIMEOUT, DEFAULT_MAX_CHUNK_SIZE, DEFAULT_MAX_HEADER_SIZE, DEFAULT_MAX_INITIAL_LINE_LENGTH, DEFAULT_MAX_POOL_SIZE, DEFAULT_MAX_REDIRECTS, DEFAULT_MAX_WAIT_QUEUE_SIZE, DEFAULT_MAX_WEBSOCKET_FRAME_SIZE, DEFAULT_MAX_WEBSOCKET_MESSAGE_SIZE, DEFAULT_MAX_WEBSOCKETS, DEFAULT_PIPELINING, DEFAULT_PIPELINING_LIMIT, DEFAULT_POOL_CLEANER_PERIOD, DEFAULT_PROTOCOL_VERSION, DEFAULT_SEND_UNMASKED_FRAMES, DEFAULT_TRACING_POLICY, DEFAULT_TRY_USE_COMPRESSION, DEFAULT_TRY_USE_PER_FRAME_WEBSOCKET_COMPRESSION, DEFAULT_TRY_USE_PER_MESSAGE_WEBSOCKET_COMPRESSION, DEFAULT_VERIFY_HOST, DEFAULT_WEBSOCKET_ALLOW_CLIENT_NO_CONTEXT, DEFAULT_WEBSOCKET_CLOSING_TIMEOUT, DEFAULT_WEBSOCKET_COMPRESSION_LEVEL, DEFAULT_WEBSOCKET_REQUEST_SERVER_NO_CONTEXTDEFAULT_CONNECT_TIMEOUT, DEFAULT_METRICS_NAME, DEFAULT_TRUST_ALLDEFAULT_ENABLED_SECURE_TRANSPORT_PROTOCOLS, DEFAULT_IDLE_TIMEOUT, DEFAULT_IDLE_TIMEOUT_TIME_UNIT, DEFAULT_SO_LINGER, DEFAULT_SSL, DEFAULT_SSL_ENGINE, DEFAULT_SSL_HANDSHAKE_TIMEOUT, DEFAULT_SSL_HANDSHAKE_TIMEOUT_TIME_UNIT, DEFAULT_TCP_CORK, DEFAULT_TCP_FAST_OPEN, DEFAULT_TCP_KEEP_ALIVE, DEFAULT_TCP_NO_DELAY, DEFAULT_TCP_QUICKACK, DEFAULT_USE_ALPNDEFAULT_LOG_ENABLED, DEFAULT_RECEIVE_BUFFER_SIZE, DEFAULT_REUSE_ADDRESS, DEFAULT_REUSE_PORT, DEFAULT_SEND_BUFFER_SIZE, DEFAULT_TRAFFIC_CLASS| Constructor and Description |
|---|
HttpSenderOptions() |
HttpSenderOptions(JsonObject json) |
| Modifier and Type | Method and Description |
|---|---|
HttpSenderOptions |
addCrlPath(String crlPath)
Add a CRL path
|
HttpSenderOptions |
addCrlValue(Buffer crlValue)
Add a CRL value
|
HttpSenderOptions |
addEnabledCipherSuite(String suite)
Add an enabled cipher suite, appended to the ordered suites.
|
HttpSenderOptions |
addEnabledSecureTransportProtocol(String protocol)
Add an enabled SSL/TLS protocols, appended to the ordered protocols.
|
String |
getSenderEndpoint() |
HttpSenderOptions |
removeEnabledSecureTransportProtocol(String protocol)
Removes an enabled SSL/TLS protocol from the ordered protocols.
|
HttpSenderOptions |
setAlpnVersions(List<HttpVersion> alpnVersions)
Set the list of protocol versions to provide to the server during the Application-Layer Protocol Negotiation.
|
HttpSenderOptions |
setConnectTimeout(int connectTimeout)
Set the connect timeout
|
HttpSenderOptions |
setDecoderInitialBufferSize(int decoderInitialBufferSize)
set to
initialBufferSizeHttpDecoder the initial buffer of the HttpDecoder. |
HttpSenderOptions |
setDefaultHost(String defaultHost)
Set the default host name to be used by this client in requests if none is provided when making the request.
|
HttpSenderOptions |
setDefaultPort(int defaultPort)
Set the default port to be used by this client in requests if none is provided when making the request.
|
HttpSenderOptions |
setEnabledSecureTransportProtocols(Set<String> enabledSecureTransportProtocols)
Sets the list of enabled SSL/TLS protocols.
|
HttpSenderOptions |
setForceSni(boolean forceSni)
By default, the server name is only sent for Fully Qualified Domain Name (FQDN), setting
this property to
true forces the server name to be always sent. |
HttpSenderOptions |
setHttp2ClearTextUpgrade(boolean value)
Set to
true when an h2c connection is established using an HTTP/1.1 upgrade request, and false
when an h2c connection is established directly (with prior knowledge). |
HttpSenderOptions |
setHttp2ConnectionWindowSize(int http2ConnectionWindowSize)
Set the default HTTP/2 connection window size.
|
HttpSenderOptions |
setHttp2KeepAliveTimeout(int keepAliveTimeout)
Set the keep alive timeout for HTTP/2 connections, in seconds.
|
HttpSenderOptions |
setHttp2MaxPoolSize(int max)
Set the maximum pool size for HTTP/2 connections
|
HttpSenderOptions |
setHttp2MultiplexingLimit(int limit)
Set a client limit of the number concurrent streams for each HTTP/2 connection, this limits the number
of streams the client can create for a connection.
|
HttpSenderOptions |
setIdleTimeout(int idleTimeout)
Set the idle timeout, default time unit is seconds.
|
HttpSenderOptions |
setIdleTimeoutUnit(TimeUnit idleTimeoutUnit)
Set the idle timeout unit.
|
HttpSenderOptions |
setInitialSettings(Http2Settings settings)
Set the HTTP/2 connection settings immediately sent by to the server when the client connects.
|
HttpSenderOptions |
setJdkSslEngineOptions(JdkSSLEngineOptions sslEngineOptions) |
HttpSenderOptions |
setKeepAlive(boolean keepAlive)
Set whether keep alive is enabled on the client
|
HttpSenderOptions |
setKeepAliveTimeout(int keepAliveTimeout)
Set the keep alive timeout for HTTP/1.x, in seconds.
|
HttpSenderOptions |
setKeyCertOptions(KeyCertOptions options)
Set the key/cert options.
|
HttpSenderOptions |
setKeyStoreOptions(JksOptions options)
Set the key/cert options in jks format, aka Java keystore.
|
HttpSenderOptions |
setLocalAddress(String localAddress)
Set the local interface to bind for network connections.
|
HttpSenderOptions |
setLogActivity(boolean logEnabled)
Set to true to enabled network activity logging: Netty's pipeline is configured for logging on Netty's logger.
|
HttpSenderOptions |
setMaxChunkSize(int maxChunkSize)
Set the maximum HTTP chunk size
|
HttpSenderOptions |
setMaxHeaderSize(int maxHeaderSize)
Set the maximum length of all headers for HTTP/1.x .
|
HttpSenderOptions |
setMaxInitialLineLength(int maxInitialLineLength)
Set the maximum length of the initial line for HTTP/1.x (e.g.
|
HttpSenderOptions |
setMaxPoolSize(int maxPoolSize)
Set the maximum pool size for connections
|
HttpSenderOptions |
setMaxRedirects(int maxRedirects)
Set to
maxRedirects the maximum number of redirection a request can follow. |
HttpSenderOptions |
setMaxWaitQueueSize(int maxWaitQueueSize)
Set the maximum requests allowed in the wait queue, any requests beyond the max size will result in
a ConnectionPoolTooBusyException.
|
HttpSenderOptions |
setMaxWebSocketFrameSize(int maxWebsocketFrameSize)
Set the max WebSocket frame size
|
HttpSenderOptions |
setMaxWebSocketMessageSize(int maxWebsocketMessageSize)
Set the max WebSocket message size
|
HttpSenderOptions |
setMetricsName(String metricsName)
Set the metrics name identifying the reported metrics, useful for grouping metrics
with the same name.
|
HttpSenderOptions |
setOpenSslEngineOptions(OpenSSLEngineOptions sslEngineOptions) |
HttpSenderOptions |
setPemKeyCertOptions(PemKeyCertOptions options)
Set the key/cert store options in pem format.
|
HttpSenderOptions |
setPemTrustOptions(PemTrustOptions options)
Set the trust options in pem format
|
HttpSenderOptions |
setPfxKeyCertOptions(PfxOptions options)
Set the key/cert options in pfx format.
|
HttpSenderOptions |
setPfxTrustOptions(PfxOptions options)
Set the trust options in pfx format
|
HttpSenderOptions |
setPipelining(boolean pipelining)
Set whether pipe-lining is enabled on the client
|
HttpSenderOptions |
setPipeliningLimit(int limit)
Set the limit of pending requests a pipe-lined HTTP/1 connection can send.
|
HttpSenderOptions |
setPoolCleanerPeriod(int poolCleanerPeriod)
Set the connection pool cleaner period in milli seconds, a non positive value disables expiration checks and connections
will remain in the pool until they are closed.
|
HttpSenderOptions |
setProtocolVersion(HttpVersion protocolVersion)
Set the protocol version.
|
HttpSenderOptions |
setProxyOptions(ProxyOptions proxyOptions)
Set proxy options for connections via CONNECT proxy (e.g.
|
HttpSenderOptions |
setReceiveBufferSize(int receiveBufferSize)
Set the TCP receive buffer size
|
HttpSenderOptions |
setReuseAddress(boolean reuseAddress)
Set the value of reuse address
|
HttpSenderOptions |
setReusePort(boolean reusePort)
Set the value of reuse port.
|
HttpSenderOptions |
setSendBufferSize(int sendBufferSize)
Set the TCP send buffer size
|
HttpSenderOptions |
setSenderEndpoint(String endpoint) |
HttpSenderOptions |
setSendUnmaskedFrames(boolean sendUnmaskedFrames)
Set
true when the client wants to skip frame masking. |
HttpSenderOptions |
setSoLinger(int soLinger)
Set whether SO_linger keep alive is enabled
|
HttpSenderOptions |
setSsl(boolean ssl)
Set whether SSL/TLS is enabled
|
HttpSenderOptions |
setSslEngineOptions(SSLEngineOptions sslEngineOptions)
Set to use SSL engine implementation to use.
|
HttpSenderOptions |
setTcpCork(boolean tcpCork)
Enable the
TCP_CORK option - only with linux native transport. |
HttpSenderOptions |
setTcpFastOpen(boolean tcpFastOpen)
Enable the
TCP_FASTOPEN option - only with linux native transport. |
HttpSenderOptions |
setTcpKeepAlive(boolean tcpKeepAlive)
Set whether TCP keep alive is enabled
|
HttpSenderOptions |
setTcpNoDelay(boolean tcpNoDelay)
Set whether TCP no delay is enabled
|
HttpSenderOptions |
setTcpQuickAck(boolean tcpQuickAck)
Enable the
TCP_QUICKACK option - only with linux native transport. |
HttpSenderOptions |
setTrafficClass(int trafficClass)
Set the value of traffic class
|
HttpSenderOptions |
setTrustAll(boolean trustAll)
Set whether all server certificates should be trusted
|
HttpSenderOptions |
setTrustOptions(TrustOptions options)
Set the trust options.
|
HttpSenderOptions |
setTrustStoreOptions(JksOptions options)
Set the trust options in jks format, aka Java truststore
|
HttpSenderOptions |
setTryUseCompression(boolean tryUseCompression)
Set whether compression is enabled
|
HttpSenderOptions |
setTryUsePerFrameWebSocketCompression(boolean offer)
Set whether the client will offer the WebSocket per-frame deflate compression extension.
|
HttpSenderOptions |
setTryUsePerMessageWebSocketCompression(boolean offer)
Set whether the client will offer the WebSocket per-message deflate compression extension.
|
HttpSenderOptions |
setUseAlpn(boolean useAlpn)
Set the ALPN usage.
|
HttpSenderOptions |
setVerifyHost(boolean verifyHost)
Set whether hostname verification is enabled
|
HttpSenderOptions |
setWebSocketCompressionAllowClientNoContext(boolean offer)
Set whether the
client_no_context_takeover parameter of the WebSocket per-message
deflate compression extension will be offered. |
HttpSenderOptions |
setWebSocketCompressionLevel(int compressionLevel)
Set the WebSocket deflate compression level.
|
HttpSenderOptions |
setWebSocketCompressionRequestServerNoContext(boolean offer)
Set whether the
server_no_context_takeover parameter of the WebSocket per-message
deflate compression extension will be offered. |
getAlpnVersions, getDecoderInitialBufferSize, getDefaultHost, getDefaultPort, getHttp2ConnectionWindowSize, getHttp2KeepAliveTimeout, getHttp2MaxPoolSize, getHttp2MultiplexingLimit, getInitialSettings, getKeepAliveTimeout, getMaxChunkSize, getMaxHeaderSize, getMaxInitialLineLength, getMaxPoolSize, getMaxRedirects, getMaxWaitQueueSize, getMaxWebSocketFrameSize, getMaxWebSocketMessageSize, getMaxWebSockets, getPipeliningLimit, getPoolCleanerPeriod, getProtocolVersion, getTracingPolicy, getTryUsePerMessageWebSocketCompression, getTryWebSocketDeflateFrameCompression, getWebSocketClosingTimeout, getWebSocketCompressionAllowClientNoContext, getWebSocketCompressionLevel, getWebSocketCompressionRequestServerNoContext, isForceSni, isHttp2ClearTextUpgrade, isKeepAlive, isPipelining, isSendUnmaskedFrames, isTryUseCompression, isVerifyHost, setMaxWebSockets, setSslHandshakeTimeout, setSslHandshakeTimeoutUnit, setTracingPolicy, setWebSocketClosingTimeout, toJsongetConnectTimeout, getLocalAddress, getMetricsName, getProxyOptions, isTrustAllgetCrlPaths, getCrlValues, getEnabledCipherSuites, getEnabledSecureTransportProtocols, getIdleTimeout, getIdleTimeoutUnit, getJdkSslEngineOptions, getKeyCertOptions, getKeyStoreOptions, getOpenSslEngineOptions, getPemKeyCertOptions, getPemTrustOptions, getPfxKeyCertOptions, getPfxTrustOptions, getSoLinger, getSslEngineOptions, getSslHandshakeTimeout, getSslHandshakeTimeoutUnit, getTrustOptions, getTrustStoreOptions, isSsl, isTcpCork, isTcpFastOpen, isTcpKeepAlive, isTcpNoDelay, isTcpQuickAck, isUseAlpngetLogActivity, getReceiveBufferSize, getSendBufferSize, getTrafficClass, isReuseAddress, isReusePortpublic static final String DEFAULT_SENDER_ENDPOINT
public HttpSenderOptions()
public HttpSenderOptions(JsonObject json)
public String getSenderEndpoint()
public HttpSenderOptions setSenderEndpoint(String endpoint)
public HttpSenderOptions setSendBufferSize(int sendBufferSize)
NetworkOptionssetSendBufferSize in class HttpClientOptionssendBufferSize - the buffers size, in bytespublic HttpSenderOptions setReceiveBufferSize(int receiveBufferSize)
NetworkOptionssetReceiveBufferSize in class HttpClientOptionsreceiveBufferSize - the buffers size, in bytespublic HttpSenderOptions setReuseAddress(boolean reuseAddress)
NetworkOptionssetReuseAddress in class HttpClientOptionsreuseAddress - the value of reuse addresspublic HttpSenderOptions setReusePort(boolean reusePort)
NetworkOptionssetReusePort in class HttpClientOptionsreusePort - the value of reuse portpublic HttpSenderOptions setTrafficClass(int trafficClass)
NetworkOptionssetTrafficClass in class HttpClientOptionstrafficClass - the value of traffic classpublic HttpSenderOptions setTcpNoDelay(boolean tcpNoDelay)
TCPSSLOptionssetTcpNoDelay in class HttpClientOptionstcpNoDelay - true if TCP no delay is enabled (Nagle disabled)public HttpSenderOptions setTcpKeepAlive(boolean tcpKeepAlive)
TCPSSLOptionssetTcpKeepAlive in class HttpClientOptionstcpKeepAlive - true if TCP keep alive is enabledpublic HttpSenderOptions setSoLinger(int soLinger)
TCPSSLOptionssetSoLinger in class HttpClientOptionssoLinger - true if SO_linger is enabledpublic HttpSenderOptions setIdleTimeout(int idleTimeout)
TCPSSLOptionsTCPSSLOptions.setIdleTimeoutUnit(TimeUnit)setIdleTimeout in class HttpClientOptionsidleTimeout - the timeout, in secondspublic HttpSenderOptions setIdleTimeoutUnit(TimeUnit idleTimeoutUnit)
TCPSSLOptionssetIdleTimeoutUnit in class HttpClientOptionsidleTimeoutUnit - specify time unit.public HttpSenderOptions setSsl(boolean ssl)
TCPSSLOptionssetSsl in class HttpClientOptionsssl - true if enabledpublic HttpSenderOptions setKeyCertOptions(KeyCertOptions options)
TCPSSLOptionssetKeyCertOptions in class HttpClientOptionsoptions - the key store optionspublic HttpSenderOptions setKeyStoreOptions(JksOptions options)
TCPSSLOptionssetKeyStoreOptions in class HttpClientOptionsoptions - the key store in jks formatpublic HttpSenderOptions setPfxKeyCertOptions(PfxOptions options)
TCPSSLOptionssetPfxKeyCertOptions in class HttpClientOptionsoptions - the key cert options in pfx formatpublic HttpSenderOptions setTrustOptions(TrustOptions options)
TCPSSLOptionssetTrustOptions in class HttpClientOptionsoptions - the trust optionspublic HttpSenderOptions setPemKeyCertOptions(PemKeyCertOptions options)
TCPSSLOptionssetPemKeyCertOptions in class HttpClientOptionsoptions - the options in pem formatpublic HttpSenderOptions setTrustStoreOptions(JksOptions options)
TCPSSLOptionssetTrustStoreOptions in class HttpClientOptionsoptions - the trust options in jks formatpublic HttpSenderOptions setPfxTrustOptions(PfxOptions options)
TCPSSLOptionssetPfxTrustOptions in class HttpClientOptionsoptions - the trust options in pfx formatpublic HttpSenderOptions setPemTrustOptions(PemTrustOptions options)
TCPSSLOptionssetPemTrustOptions in class HttpClientOptionsoptions - the trust options in pem formatpublic HttpSenderOptions addEnabledCipherSuite(String suite)
TCPSSLOptionsaddEnabledCipherSuite in class HttpClientOptionssuite - the suitepublic HttpSenderOptions addEnabledSecureTransportProtocol(String protocol)
TCPSSLOptionsaddEnabledSecureTransportProtocol in class HttpClientOptionsprotocol - the SSL/TLS protocol to enablepublic HttpSenderOptions removeEnabledSecureTransportProtocol(String protocol)
TCPSSLOptionsremoveEnabledSecureTransportProtocol in class HttpClientOptionsprotocol - the SSL/TLS protocol to disablepublic HttpSenderOptions setTcpFastOpen(boolean tcpFastOpen)
TCPSSLOptionsTCP_FASTOPEN option - only with linux native transport.setTcpFastOpen in class HttpClientOptionstcpFastOpen - the fast open valuepublic HttpSenderOptions setTcpCork(boolean tcpCork)
TCPSSLOptionsTCP_CORK option - only with linux native transport.setTcpCork in class HttpClientOptionstcpCork - the cork valuepublic HttpSenderOptions setTcpQuickAck(boolean tcpQuickAck)
TCPSSLOptionsTCP_QUICKACK option - only with linux native transport.setTcpQuickAck in class HttpClientOptionstcpQuickAck - the quick ack valuepublic HttpSenderOptions addCrlPath(String crlPath) throws NullPointerException
TCPSSLOptionsaddCrlPath in class HttpClientOptionscrlPath - the pathNullPointerExceptionpublic HttpSenderOptions addCrlValue(Buffer crlValue) throws NullPointerException
TCPSSLOptionsaddCrlValue in class HttpClientOptionscrlValue - the valueNullPointerExceptionpublic HttpSenderOptions setConnectTimeout(int connectTimeout)
ClientOptionsBasesetConnectTimeout in class HttpClientOptionsconnectTimeout - connect timeout, in mspublic HttpSenderOptions setTrustAll(boolean trustAll)
ClientOptionsBasesetTrustAll in class HttpClientOptionstrustAll - true if all should be trustedpublic HttpSenderOptions setEnabledSecureTransportProtocols(Set<String> enabledSecureTransportProtocols)
TCPSSLOptionssetEnabledSecureTransportProtocols in class HttpClientOptionsenabledSecureTransportProtocols - the SSL/TLS protocols to enablepublic HttpSenderOptions setMaxPoolSize(int maxPoolSize)
HttpClientOptionssetMaxPoolSize in class HttpClientOptionsmaxPoolSize - the maximum pool sizepublic HttpSenderOptions setHttp2MultiplexingLimit(int limit)
HttpClientOptions-1 means to use the value sent by the server's initial settings.
-1 is the default value.setHttp2MultiplexingLimit in class HttpClientOptionslimit - the maximum concurrent for an HTTP/2 connectionpublic HttpSenderOptions setHttp2MaxPoolSize(int max)
HttpClientOptionssetHttp2MaxPoolSize in class HttpClientOptionsmax - the maximum pool sizepublic HttpSenderOptions setHttp2ConnectionWindowSize(int http2ConnectionWindowSize)
HttpClientOptionsHttp2Settings.getInitialWindowSize(), so the connection window size
is greater than for its streams, in order the data throughput.
A value of -1 reuses the initial window size setting.setHttp2ConnectionWindowSize in class HttpClientOptionshttp2ConnectionWindowSize - the window size applied to the connectionpublic HttpSenderOptions setHttp2KeepAliveTimeout(int keepAliveTimeout)
HttpClientOptions0 means there is no timeout.setHttp2KeepAliveTimeout in class HttpClientOptionskeepAliveTimeout - the timeout, in secondspublic HttpSenderOptions setKeepAlive(boolean keepAlive)
HttpClientOptionssetKeepAlive in class HttpClientOptionskeepAlive - true if enabledpublic HttpSenderOptions setKeepAliveTimeout(int keepAliveTimeout)
HttpClientOptions0 means there is no timeout.setKeepAliveTimeout in class HttpClientOptionskeepAliveTimeout - the timeout, in secondspublic HttpSenderOptions setPipelining(boolean pipelining)
HttpClientOptionssetPipelining in class HttpClientOptionspipelining - true if enabledpublic HttpSenderOptions setPipeliningLimit(int limit)
HttpClientOptionssetPipeliningLimit in class HttpClientOptionslimit - the limit of pending requestspublic HttpSenderOptions setVerifyHost(boolean verifyHost)
HttpClientOptionssetVerifyHost in class HttpClientOptionsverifyHost - true if enabledpublic HttpSenderOptions setTryUseCompression(boolean tryUseCompression)
HttpClientOptionssetTryUseCompression in class HttpClientOptionstryUseCompression - true if enabledpublic HttpSenderOptions setSendUnmaskedFrames(boolean sendUnmaskedFrames)
HttpClientOptionstrue when the client wants to skip frame masking.
You may want to set it true on server by server WebSocket communication: in this case you are by passing
RFC6455 protocol.
It's false as default.
setSendUnmaskedFrames in class HttpClientOptionssendUnmaskedFrames - true if enabledpublic HttpSenderOptions setMaxWebSocketFrameSize(int maxWebsocketFrameSize)
HttpClientOptionssetMaxWebSocketFrameSize in class HttpClientOptionsmaxWebsocketFrameSize - the max frame size, in bytespublic HttpSenderOptions setMaxWebSocketMessageSize(int maxWebsocketMessageSize)
HttpClientOptionssetMaxWebSocketMessageSize in class HttpClientOptionsmaxWebsocketMessageSize - the max message size, in bytespublic HttpSenderOptions setDefaultHost(String defaultHost)
HttpClientOptionssetDefaultHost in class HttpClientOptionspublic HttpSenderOptions setDefaultPort(int defaultPort)
HttpClientOptionssetDefaultPort in class HttpClientOptionspublic HttpSenderOptions setProtocolVersion(HttpVersion protocolVersion)
HttpClientOptionssetProtocolVersion in class HttpClientOptionsprotocolVersion - the protocol versionpublic HttpSenderOptions setMaxChunkSize(int maxChunkSize)
HttpClientOptionssetMaxChunkSize in class HttpClientOptionsmaxChunkSize - the maximum chunk sizepublic HttpSenderOptions setMaxInitialLineLength(int maxInitialLineLength)
HttpClientOptions"HTTP/1.1 200 OK")setMaxInitialLineLength in class HttpClientOptionsmaxInitialLineLength - the new maximum initial lengthpublic HttpSenderOptions setMaxHeaderSize(int maxHeaderSize)
HttpClientOptionssetMaxHeaderSize in class HttpClientOptionsmaxHeaderSize - the new maximum lengthpublic HttpSenderOptions setMaxWaitQueueSize(int maxWaitQueueSize)
HttpClientOptionssetMaxWaitQueueSize in class HttpClientOptionsmaxWaitQueueSize - the maximum number of waiting requestspublic HttpSenderOptions setInitialSettings(Http2Settings settings)
HttpClientOptionssetInitialSettings in class HttpClientOptionssettings - the settings valuepublic HttpSenderOptions setUseAlpn(boolean useAlpn)
TCPSSLOptionssetUseAlpn in class HttpClientOptionsuseAlpn - true when Application-Layer Protocol Negotiation should be usedpublic HttpSenderOptions setSslEngineOptions(SSLEngineOptions sslEngineOptions)
TCPSSLOptionssetSslEngineOptions in class HttpClientOptionssslEngineOptions - the ssl engine to usepublic HttpSenderOptions setJdkSslEngineOptions(JdkSSLEngineOptions sslEngineOptions)
setJdkSslEngineOptions in class HttpClientOptionspublic HttpSenderOptions setOpenSslEngineOptions(OpenSSLEngineOptions sslEngineOptions)
setOpenSslEngineOptions in class HttpClientOptionspublic HttpSenderOptions setAlpnVersions(List<HttpVersion> alpnVersions)
HttpClientOptionsHttpClientOptions.setProtocolVersion(io.vertx.core.http.HttpVersion):
HttpVersion.HTTP_2: [ "h2", "http/1.1" ]HttpClientOptions.getProtocolVersion()]setAlpnVersions in class HttpClientOptionsalpnVersions - the versionspublic HttpSenderOptions setHttp2ClearTextUpgrade(boolean value)
HttpClientOptionstrue when an h2c connection is established using an HTTP/1.1 upgrade request, and false
when an h2c connection is established directly (with prior knowledge).setHttp2ClearTextUpgrade in class HttpClientOptionsvalue - the upgrade valuepublic HttpSenderOptions setMaxRedirects(int maxRedirects)
HttpClientOptionsmaxRedirects the maximum number of redirection a request can follow.setMaxRedirects in class HttpClientOptionsmaxRedirects - the maximum number of redirectionpublic HttpSenderOptions setForceSni(boolean forceSni)
HttpClientOptionstrue forces the server name to be always sent.setForceSni in class HttpClientOptionsforceSni - true when the client should always use SNI on TLS/SSL connectionspublic HttpSenderOptions setMetricsName(String metricsName)
ClientOptionsBasesetMetricsName in class HttpClientOptionsmetricsName - the metrics namepublic HttpSenderOptions setProxyOptions(ProxyOptions proxyOptions)
ClientOptionsBasesetProxyOptions in class HttpClientOptionsproxyOptions - proxy options objectpublic HttpSenderOptions setLocalAddress(String localAddress)
ClientOptionsBasesetLocalAddress in class HttpClientOptionslocalAddress - the local addresspublic HttpSenderOptions setLogActivity(boolean logEnabled)
NetworkOptionssetLogActivity in class HttpClientOptionslogEnabled - true for logging the network activitypublic HttpSenderOptions setTryUsePerFrameWebSocketCompression(boolean offer)
HttpClientOptionssetTryUsePerFrameWebSocketCompression in class HttpClientOptionsoffer - true to offer the per-frame deflate compression extensionpublic HttpSenderOptions setTryUsePerMessageWebSocketCompression(boolean offer)
HttpClientOptionssetTryUsePerMessageWebSocketCompression in class HttpClientOptionsoffer - true to offer the per-message deflate compression extensionpublic HttpSenderOptions setWebSocketCompressionLevel(int compressionLevel)
HttpClientOptionssetWebSocketCompressionLevel in class HttpClientOptionscompressionLevel - the WebSocket deflate compression levelpublic HttpSenderOptions setWebSocketCompressionAllowClientNoContext(boolean offer)
HttpClientOptionsclient_no_context_takeover parameter of the WebSocket per-message
deflate compression extension will be offered.setWebSocketCompressionAllowClientNoContext in class HttpClientOptionsoffer - true to offer the client_no_context_takeover parameterpublic HttpSenderOptions setWebSocketCompressionRequestServerNoContext(boolean offer)
HttpClientOptionsserver_no_context_takeover parameter of the WebSocket per-message
deflate compression extension will be offered.setWebSocketCompressionRequestServerNoContext in class HttpClientOptionsoffer - true to offer the server_no_context_takeover parameterpublic HttpSenderOptions setDecoderInitialBufferSize(int decoderInitialBufferSize)
HttpClientOptionsinitialBufferSizeHttpDecoder the initial buffer of the HttpDecoder.setDecoderInitialBufferSize in class HttpClientOptionsdecoderInitialBufferSize - the initial buffer sizepublic HttpSenderOptions setPoolCleanerPeriod(int poolCleanerPeriod)
HttpClientOptionssetPoolCleanerPeriod in class HttpClientOptionspoolCleanerPeriod - the pool cleaner periodCopyright © 2021 Eclipse. All rights reserved.