Class HttpSenderOptions
java.lang.Object
io.vertx.core.net.NetworkOptions
io.vertx.core.net.TCPSSLOptions
io.vertx.core.net.ClientOptionsBase
io.vertx.core.http.HttpClientOptions
io.vertx.tracing.zipkin.HttpSenderOptions
Options for reporting to a Zipkin server configured by default to
http://localhost:9411/api/v2/spans.-
Field Summary
FieldsFields inherited from class HttpClientOptions
DEFAULT_ALPN_VERSIONS, DEFAULT_DECODER_INITIAL_BUFFER_SIZE, DEFAULT_DECOMPRESSION_SUPPORTED, DEFAULT_DEFAULT_HOST, DEFAULT_DEFAULT_PORT, DEFAULT_FOLLOW_ALTERNATIVE_SERVICES, DEFAULT_FORCE_SNI, DEFAULT_HTTP_2_MULTIPLEX_IMPLEMENTATION, DEFAULT_HTTP2_CLEAR_TEXT_UPGRADE, DEFAULT_HTTP2_CLEAR_TEXT_UPGRADE_WITH_PREFLIGHT_REQUEST, DEFAULT_HTTP2_CONNECTION_WINDOW_SIZE, DEFAULT_HTTP2_KEEP_ALIVE_TIMEOUT, DEFAULT_HTTP2_MULTIPLEXING_LIMIT, DEFAULT_HTTP2_UPGRADE_MAX_CONTENT_LENGTH, DEFAULT_KEEP_ALIVE, DEFAULT_KEEP_ALIVE_TIMEOUT, DEFAULT_MAX_CHUNK_SIZE, DEFAULT_MAX_HEADER_SIZE, DEFAULT_MAX_INITIAL_LINE_LENGTH, DEFAULT_MAX_REDIRECTS, DEFAULT_NAME, DEFAULT_PIPELINING, DEFAULT_PIPELINING_LIMIT, DEFAULT_PROTOCOL_VERSION, DEFAULT_SHARED, DEFAULT_TRACING_POLICY, DEFAULT_VERIFY_HOSTFields inherited from class ClientOptionsBase
DEFAULT_CONNECT_TIMEOUT, DEFAULT_METRICS_NAMEFields inherited from class TCPSSLOptions
DEFAULT_IDLE_TIMEOUT, DEFAULT_IDLE_TIMEOUT_TIME_UNIT, DEFAULT_READ_IDLE_TIMEOUT, DEFAULT_SO_LINGER, DEFAULT_SSL, DEFAULT_SSL_ENGINE, DEFAULT_TCP_CORK, DEFAULT_TCP_FAST_OPEN, DEFAULT_TCP_KEEAPLIVE_COUNT, DEFAULT_TCP_KEEAPLIVE_IDLE_SECONDS, DEFAULT_TCP_KEEAPLIVE_INTERVAL_SECONDS, DEFAULT_TCP_KEEP_ALIVE, DEFAULT_TCP_NO_DELAY, DEFAULT_TCP_QUICKACK, DEFAULT_TCP_USER_TIMEOUT, DEFAULT_WRITE_IDLE_TIMEOUT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCrlPath(String crlPath) Add a CRL pathaddCrlValue(Buffer crlValue) Add a CRL valueaddEnabledCipherSuite(String suite) Add an enabled cipher suite, appended to the ordered suites.addEnabledSecureTransportProtocol(String protocol) Add an enabled SSL/TLS protocols, appended to the ordered protocols.removeEnabledSecureTransportProtocol(String protocol) Removes an enabled SSL/TLS protocol from the ordered protocols.setAlpnVersions(List<HttpVersion> alpnVersions) Set the list of protocol versions to provide to the server during the Application-Layer Protocol Negotiation.setConnectTimeout(int connectTimeout) Set the connect timeoutsetDecoderInitialBufferSize(int decoderInitialBufferSize) set toinitialBufferSizeHttpDecoderthe initial buffer of the HttpDecoder.setDecompressionSupported(boolean decompressionSupported) Whether the client should send requests with anaccepting-encodingheader set to a compression algorithm.setDefaultHost(String defaultHost) Set the default host name to be used by this client in requests if none is provided when making the request.setDefaultPort(int defaultPort) Set the default port to be used by this client in requests if none is provided when making the request.setEnabledSecureTransportProtocols(Set<String> enabledSecureTransportProtocols) Sets the list of enabled SSL/TLS protocols.setForceSni(boolean forceSni) By default, the server name is only sent for Fully Qualified Domain Name (FQDN), setting this property totrueforces the server name to be always sent.setHttp2ClearTextUpgrade(boolean value) Set totruewhen an h2c connection is established using an HTTP/1.1 upgrade request, andfalsewhen an h2c connection is established directly (with prior knowledge).setHttp2ConnectionWindowSize(int http2ConnectionWindowSize) Set the default HTTP/2 connection window size.setHttp2KeepAliveTimeout(int keepAliveTimeout) Set the keep alive timeout for HTTP/2 connections, in seconds.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.setIdleTimeout(int idleTimeout) Set the idle timeout, default time unit is seconds.setIdleTimeoutUnit(TimeUnit idleTimeoutUnit) Set the idle timeout unit.setInitialSettings(Http2Settings settings) Set the HTTP/2 connection settings immediately sent by to the server when the client connects.setKeepAlive(boolean keepAlive) Set whether keep alive is enabled on the clientsetKeepAliveTimeout(int keepAliveTimeout) Set the keep alive timeout for HTTP/1.x, in seconds.setKeyCertOptions(KeyCertOptions options) Set the key/cert options.setLocalAddress(String localAddress) Set the local interface to bind for network connections.setLogActivity(boolean logEnabled) Set to true to enabled network activity logging: Netty's pipeline is configured for logging on Netty's logger.setMaxChunkSize(int maxChunkSize) Set the maximum HTTP chunk sizesetMaxHeaderSize(int maxHeaderSize) Set the maximum length of all headers for HTTP/1.x .setMaxInitialLineLength(int maxInitialLineLength) Set the maximum length of the initial line for HTTP/1.x (e.g.setMaxRedirects(int maxRedirects) Set tomaxRedirectsthe maximum number of redirection a request can follow.setMetricsName(String metricsName) Set the metrics name identifying the reported metrics, useful for grouping metrics with the same name.setPipelining(boolean pipelining) Set whether pipe-lining is enabled on the clientsetPipeliningLimit(int limit) Set the limit of pending requests a pipe-lined HTTP/1 connection can send.setProtocolVersion(HttpVersion protocolVersion) Set the protocol version.setProxyOptions(ProxyOptions proxyOptions) Set proxy options for connections via CONNECT proxy (e.g.setReceiveBufferSize(int receiveBufferSize) Set the TCP receive buffer sizesetReuseAddress(boolean reuseAddress) Set the value of reuse addresssetReusePort(boolean reusePort) Set the value of reuse port.setSendBufferSize(int sendBufferSize) Set the TCP send buffer sizesetSenderEndpoint(String endpoint) setSoLinger(int soLinger) Set whether SO_linger keep alive is enabledsetSsl(boolean ssl) Set whether SSL/TLS is enabledsetSslEngineOptions(SSLEngineOptions sslEngineOptions) Set to use SSL engine implementation to use.setTcpCork(boolean tcpCork) Enable theTCP_CORKoption - only with linux native transport.setTcpFastOpen(boolean tcpFastOpen) Enable theTCP_FASTOPENoption - only with linux native transport.setTcpKeepAlive(boolean tcpKeepAlive) Set whether TCP keep alive is enabledsetTcpNoDelay(boolean tcpNoDelay) Set whether TCP no delay is enabledsetTcpQuickAck(boolean tcpQuickAck) Enable theTCP_QUICKACKoption - only with linux native transport.setTrafficClass(int trafficClass) Set the value of traffic classsetTrustAll(boolean trustAll) Set whether all server certificates should be trustedsetTrustOptions(TrustOptions options) Set the trust options.setUseAlpn(boolean useAlpn) Set the ALPN usage.setVerifyHost(boolean verifyHost) Set whether hostname verification is enabledMethods inherited from class HttpClientOptions
addNonProxyHost, createSSLOptions, getAlpnVersions, getDecoderInitialBufferSize, getDefaultHost, getDefaultPort, getFollowAlternativeServices, getHttp1Config, getHttp2Config, getHttp2ConnectionWindowSize, getHttp2KeepAliveTimeout, getHttp2MultiplexImplementation, getHttp2MultiplexingLimit, getHttp2UpgradeMaxContentLength, getInitialSettings, getKeepAliveTimeout, getMaxChunkSize, getMaxHeaderSize, getMaxInitialLineLength, getMaxRedirects, getName, getPipeliningLimit, getProtocolVersion, getTracingPolicy, isDecompressionSupported, isForceSni, isHttp2ClearTextUpgrade, isHttp2ClearTextUpgradeWithPreflightRequest, isKeepAlive, isPipelining, isShared, isVerifyHost, removeEnabledCipherSuite, setActivityLogDataFormat, setFollowAlternativeServices, setHttp2ClearTextUpgradeWithPreflightRequest, setHttp2MultiplexImplementation, setHttp2UpgradeMaxContentLength, setName, setNonProxyHosts, setReadIdleTimeout, setShared, setSslHandshakeTimeout, setSslHandshakeTimeoutUnit, setTcpUserTimeout, setTracingPolicy, setWriteIdleTimeout, toJsonMethods inherited from class ClientOptionsBase
getConnectTimeout, getLocalAddress, getMetricsName, getNonProxyHosts, getOrCreateSSLOptions, getProxyOptions, getSslOptions, isTrustAllMethods inherited from class TCPSSLOptions
getCrlPaths, getCrlValues, getEnabledCipherSuites, getEnabledSecureTransportProtocols, getIdleTimeout, getIdleTimeoutUnit, getKeyCertOptions, getReadIdleTimeout, getReceiveBufferSize, getSendBufferSize, getSoLinger, getSslEngineOptions, getSslHandshakeTimeout, getSslHandshakeTimeoutUnit, getTcpKeepAliveCount, getTcpKeepAliveIdleSeconds, getTcpKeepAliveIntervalSeconds, getTcpUserTimeout, getTrafficClass, getTransportOptions, getTrustOptions, getWriteIdleTimeout, isReuseAddress, isReusePort, isSsl, isTcpCork, isTcpFastOpen, isTcpKeepAlive, isTcpNoDelay, isTcpQuickAck, isUseAlpn, setTcpKeepAliveCount, setTcpKeepAliveIdleSeconds, setTcpKeepAliveIntervalSecondsMethods inherited from class NetworkOptions
getActivityLogDataFormat, getLogActivity
-
Field Details
-
DEFAULT_SENDER_ENDPOINT
- See Also:
-
-
Constructor Details
-
HttpSenderOptions
public HttpSenderOptions() -
HttpSenderOptions
-
HttpSenderOptions
-
-
Method Details
-
getSenderEndpoint
- Returns:
-
setSenderEndpoint
-
setSendBufferSize
Description copied from class:NetworkOptionsSet the TCP send buffer size- Overrides:
setSendBufferSizein classHttpClientOptions- Parameters:
sendBufferSize- the buffers size, in bytes- Returns:
- a reference to this, so the API can be used fluently
-
setReceiveBufferSize
Description copied from class:NetworkOptionsSet the TCP receive buffer size- Overrides:
setReceiveBufferSizein classHttpClientOptions- Parameters:
receiveBufferSize- the buffers size, in bytes- Returns:
- a reference to this, so the API can be used fluently
-
setReuseAddress
Description copied from class:NetworkOptionsSet the value of reuse address- Overrides:
setReuseAddressin classHttpClientOptions- Parameters:
reuseAddress- the value of reuse address- Returns:
- a reference to this, so the API can be used fluently
-
setReusePort
Description copied from class:NetworkOptionsSet the value of reuse port. This is only supported by native transports.- Overrides:
setReusePortin classHttpClientOptions- Parameters:
reusePort- the value of reuse port- Returns:
- a reference to this, so the API can be used fluently
-
setTrafficClass
Description copied from class:NetworkOptionsSet the value of traffic class- Overrides:
setTrafficClassin classHttpClientOptions- Parameters:
trafficClass- the value of traffic class- Returns:
- a reference to this, so the API can be used fluently
-
setTcpNoDelay
Description copied from class:TCPSSLOptionsSet whether TCP no delay is enabled- Overrides:
setTcpNoDelayin classHttpClientOptions- Parameters:
tcpNoDelay- true if TCP no delay is enabled (Nagle disabled)- Returns:
- a reference to this, so the API can be used fluently
-
setTcpKeepAlive
Description copied from class:TCPSSLOptionsSet whether TCP keep alive is enabled- Overrides:
setTcpKeepAlivein classHttpClientOptions- Parameters:
tcpKeepAlive- true if TCP keep alive is enabled- Returns:
- a reference to this, so the API can be used fluently
-
setSoLinger
Description copied from class:TCPSSLOptionsSet whether SO_linger keep alive is enabled- Overrides:
setSoLingerin classHttpClientOptions- Parameters:
soLinger- true if SO_linger is enabled- Returns:
- a reference to this, so the API can be used fluently
-
setIdleTimeout
Description copied from class:TCPSSLOptionsSet the idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is received nor sent within the timeout. If you want change default time unit, useTCPSSLOptions.setIdleTimeoutUnit(TimeUnit)- Overrides:
setIdleTimeoutin classHttpClientOptions- Parameters:
idleTimeout- the timeout- Returns:
- a reference to this, so the API can be used fluently
-
setIdleTimeoutUnit
Description copied from class:TCPSSLOptionsSet the idle timeout unit. If not specified, default is seconds.- Overrides:
setIdleTimeoutUnitin classHttpClientOptions- Parameters:
idleTimeoutUnit- specify time unit.- Returns:
- a reference to this, so the API can be used fluently
-
setSsl
Description copied from class:TCPSSLOptionsSet whether SSL/TLS is enabled- Overrides:
setSslin classHttpClientOptions- Parameters:
ssl- true if enabled- Returns:
- a reference to this, so the API can be used fluently
-
setKeyCertOptions
Description copied from class:TCPSSLOptionsSet the key/cert options.- Overrides:
setKeyCertOptionsin classHttpClientOptions- Parameters:
options- the key store options- Returns:
- a reference to this, so the API can be used fluently
-
setTrustOptions
Description copied from class:TCPSSLOptionsSet the trust options.- Overrides:
setTrustOptionsin classHttpClientOptions- Parameters:
options- the trust options- Returns:
- a reference to this, so the API can be used fluently
-
addEnabledCipherSuite
Description copied from class:TCPSSLOptionsAdd an enabled cipher suite, appended to the ordered suites.- Overrides:
addEnabledCipherSuitein classHttpClientOptions- Parameters:
suite- the suite- Returns:
- a reference to this, so the API can be used fluently
- See Also:
-
addEnabledSecureTransportProtocol
Description copied from class:TCPSSLOptionsAdd an enabled SSL/TLS protocols, appended to the ordered protocols.- Overrides:
addEnabledSecureTransportProtocolin classHttpClientOptions- Parameters:
protocol- the SSL/TLS protocol to enable- Returns:
- a reference to this, so the API can be used fluently
-
removeEnabledSecureTransportProtocol
Description copied from class:TCPSSLOptionsRemoves an enabled SSL/TLS protocol from the ordered protocols.- Overrides:
removeEnabledSecureTransportProtocolin classHttpClientOptions- Parameters:
protocol- the SSL/TLS protocol to disable- Returns:
- a reference to this, so the API can be used fluently
-
setTcpFastOpen
Description copied from class:TCPSSLOptionsEnable theTCP_FASTOPENoption - only with linux native transport.- Overrides:
setTcpFastOpenin classHttpClientOptions- Parameters:
tcpFastOpen- the fast open value
-
setTcpCork
Description copied from class:TCPSSLOptionsEnable theTCP_CORKoption - only with linux native transport.- Overrides:
setTcpCorkin classHttpClientOptions- Parameters:
tcpCork- the cork value
-
setTcpQuickAck
Description copied from class:TCPSSLOptionsEnable theTCP_QUICKACKoption - only with linux native transport.- Overrides:
setTcpQuickAckin classHttpClientOptions- Parameters:
tcpQuickAck- the quick ack value
-
addCrlPath
Description copied from class:TCPSSLOptionsAdd a CRL path- Overrides:
addCrlPathin classHttpClientOptions- Parameters:
crlPath- the path- Returns:
- a reference to this, so the API can be used fluently
- Throws:
NullPointerException
-
addCrlValue
Description copied from class:TCPSSLOptionsAdd a CRL value- Overrides:
addCrlValuein classHttpClientOptions- Parameters:
crlValue- the value- Returns:
- a reference to this, so the API can be used fluently
- Throws:
NullPointerException
-
setConnectTimeout
Description copied from class:ClientOptionsBaseSet the connect timeout- Overrides:
setConnectTimeoutin classHttpClientOptions- Parameters:
connectTimeout- connect timeout, in ms- Returns:
- a reference to this, so the API can be used fluently
-
setTrustAll
Description copied from class:ClientOptionsBaseSet whether all server certificates should be trusted- Overrides:
setTrustAllin classHttpClientOptions- Parameters:
trustAll- true if all should be trusted- Returns:
- a reference to this, so the API can be used fluently
-
setEnabledSecureTransportProtocols
public HttpSenderOptions setEnabledSecureTransportProtocols(Set<String> enabledSecureTransportProtocols) Description copied from class:TCPSSLOptionsSets the list of enabled SSL/TLS protocols.- Overrides:
setEnabledSecureTransportProtocolsin classHttpClientOptions- Parameters:
enabledSecureTransportProtocols- the SSL/TLS protocols to enable- Returns:
- a reference to this, so the API can be used fluently
-
setHttp2MultiplexingLimit
Description copied from class:HttpClientOptionsSet 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. The effective number of streams for a connection is the min of this value and the server's initial settings. Setting the value to-1means to use the value sent by the server's initial settings.-1is the default value.- Overrides:
setHttp2MultiplexingLimitin classHttpClientOptions- Parameters:
limit- the maximum concurrent for an HTTP/2 connection- Returns:
- a reference to this, so the API can be used fluently
-
setHttp2ConnectionWindowSize
Description copied from class:HttpClientOptionsSet the default HTTP/2 connection window size. It overrides the initial window size set byHttp2Settings.getInitialWindowSize(), so the connection window size is greater than for its streams, in order the data throughput. A value of-1reuses the initial window size setting.- Overrides:
setHttp2ConnectionWindowSizein classHttpClientOptions- Parameters:
http2ConnectionWindowSize- the window size applied to the connection- Returns:
- a reference to this, so the API can be used fluently
-
setHttp2KeepAliveTimeout
Description copied from class:HttpClientOptionsSet the keep alive timeout for HTTP/2 connections, in seconds. This value determines how long a connection remains unused in the pool before being evicted and closed. A timeout of0means there is no timeout.- Overrides:
setHttp2KeepAliveTimeoutin classHttpClientOptions- Parameters:
keepAliveTimeout- the timeout, in seconds- Returns:
- a reference to this, so the API can be used fluently
-
setKeepAlive
Description copied from class:HttpClientOptionsSet whether keep alive is enabled on the client- Overrides:
setKeepAlivein classHttpClientOptions- Parameters:
keepAlive-trueif enabled- Returns:
- a reference to this, so the API can be used fluently
-
setKeepAliveTimeout
Description copied from class:HttpClientOptionsSet the keep alive timeout for HTTP/1.x, in seconds. This value determines how long a connection remains unused in the pool before being evicted and closed. A timeout of0means there is no timeout.- Overrides:
setKeepAliveTimeoutin classHttpClientOptions- Parameters:
keepAliveTimeout- the timeout, in seconds- Returns:
- a reference to this, so the API can be used fluently
-
setPipelining
Description copied from class:HttpClientOptionsSet whether pipe-lining is enabled on the client- Overrides:
setPipeliningin classHttpClientOptions- Parameters:
pipelining-trueif enabled- Returns:
- a reference to this, so the API can be used fluently
-
setPipeliningLimit
Description copied from class:HttpClientOptionsSet the limit of pending requests a pipe-lined HTTP/1 connection can send.- Overrides:
setPipeliningLimitin classHttpClientOptions- Parameters:
limit- the limit of pending requests- Returns:
- a reference to this, so the API can be used fluently
-
setVerifyHost
Description copied from class:HttpClientOptionsSet whether hostname verification is enabled- Overrides:
setVerifyHostin classHttpClientOptions- Parameters:
verifyHost-trueif enabled- Returns:
- a reference to this, so the API can be used fluently
-
setDecompressionSupported
Description copied from class:HttpClientOptionsWhether the client should send requests with anaccepting-encodingheader set to a compression algorithm.- Overrides:
setDecompressionSupportedin classHttpClientOptions- Parameters:
decompressionSupported-trueif the client should send a request with anaccepting-encodingheader set to a compression algorithm,falseotherwise- Returns:
- a reference to this, so the API can be used fluently
-
setDefaultHost
Description copied from class:HttpClientOptionsSet the default host name to be used by this client in requests if none is provided when making the request.- Overrides:
setDefaultHostin classHttpClientOptions- Returns:
- a reference to this, so the API can be used fluently
-
setDefaultPort
Description copied from class:HttpClientOptionsSet the default port to be used by this client in requests if none is provided when making the request.- Overrides:
setDefaultPortin classHttpClientOptions- Returns:
- a reference to this, so the API can be used fluently
-
setProtocolVersion
Description copied from class:HttpClientOptionsSet the protocol version.- Overrides:
setProtocolVersionin classHttpClientOptions- Parameters:
protocolVersion- the protocol version- Returns:
- a reference to this, so the API can be used fluently
-
setMaxChunkSize
Description copied from class:HttpClientOptionsSet the maximum HTTP chunk size- Overrides:
setMaxChunkSizein classHttpClientOptions- Parameters:
maxChunkSize- the maximum chunk size- Returns:
- a reference to this, so the API can be used fluently
-
setMaxInitialLineLength
Description copied from class:HttpClientOptionsSet the maximum length of the initial line for HTTP/1.x (e.g."HTTP/1.1 200 OK")- Overrides:
setMaxInitialLineLengthin classHttpClientOptions- Parameters:
maxInitialLineLength- the new maximum initial length- Returns:
- a reference to this, so the API can be used fluently
-
setMaxHeaderSize
Description copied from class:HttpClientOptionsSet the maximum length of all headers for HTTP/1.x .- Overrides:
setMaxHeaderSizein classHttpClientOptions- Parameters:
maxHeaderSize- the new maximum length- Returns:
- a reference to this, so the API can be used fluently
-
setInitialSettings
Description copied from class:HttpClientOptionsSet the HTTP/2 connection settings immediately sent by to the server when the client connects.- Overrides:
setInitialSettingsin classHttpClientOptions- Parameters:
settings- the settings value- Returns:
- a reference to this, so the API can be used fluently
-
setUseAlpn
Description copied from class:TCPSSLOptionsSet the ALPN usage.- Overrides:
setUseAlpnin classHttpClientOptions- Parameters:
useAlpn- true when Application-Layer Protocol Negotiation should be used
-
setSslEngineOptions
Description copied from class:TCPSSLOptionsSet to use SSL engine implementation to use.- Overrides:
setSslEngineOptionsin classHttpClientOptions- Parameters:
sslEngineOptions- the ssl engine to use- Returns:
- a reference to this, so the API can be used fluently
-
setAlpnVersions
Description copied from class:HttpClientOptionsSet the list of protocol versions to provide to the server during the Application-Layer Protocol Negotiation. When the list is empty, the client makes a best effort list according toHttpClientOptions.setProtocolVersion(HttpVersion):HttpVersion.HTTP_2: [ "h2", "http/1.1" ]- otherwise: [
HttpClientOptions.getProtocolVersion()]
- Overrides:
setAlpnVersionsin classHttpClientOptions- Parameters:
alpnVersions- the versions- Returns:
- a reference to this, so the API can be used fluently
-
setHttp2ClearTextUpgrade
Description copied from class:HttpClientOptionsSet totruewhen an h2c connection is established using an HTTP/1.1 upgrade request, andfalsewhen an h2c connection is established directly (with prior knowledge).- Overrides:
setHttp2ClearTextUpgradein classHttpClientOptions- Parameters:
value- the upgrade value- Returns:
- a reference to this, so the API can be used fluently
-
setMaxRedirects
Description copied from class:HttpClientOptionsSet tomaxRedirectsthe maximum number of redirection a request can follow.- Overrides:
setMaxRedirectsin classHttpClientOptions- Parameters:
maxRedirects- the maximum number of redirection- Returns:
- a reference to this, so the API can be used fluently
-
setForceSni
Description copied from class:HttpClientOptionsBy default, the server name is only sent for Fully Qualified Domain Name (FQDN), setting this property totrueforces the server name to be always sent.- Overrides:
setForceSniin classHttpClientOptions- Parameters:
forceSni-truewhen the client should always use SNI on TLS/SSL connections- Returns:
- a reference to this, so the API can be used fluently
-
setMetricsName
Description copied from class:ClientOptionsBaseSet the metrics name identifying the reported metrics, useful for grouping metrics with the same name.- Overrides:
setMetricsNamein classHttpClientOptions- Parameters:
metricsName- the metrics name- Returns:
- a reference to this, so the API can be used fluently
-
setProxyOptions
Description copied from class:ClientOptionsBaseSet proxy options for connections via CONNECT proxy (e.g. Squid) or a SOCKS proxy.- Overrides:
setProxyOptionsin classHttpClientOptions- Parameters:
proxyOptions- proxy options object- Returns:
- a reference to this, so the API can be used fluently
-
setLocalAddress
Description copied from class:ClientOptionsBaseSet the local interface to bind for network connections. When the local address is null, it will pick any local address, the default local address is null.- Overrides:
setLocalAddressin classHttpClientOptions- Parameters:
localAddress- the local address- Returns:
- a reference to this, so the API can be used fluently
-
setLogActivity
Description copied from class:NetworkOptionsSet to true to enabled network activity logging: Netty's pipeline is configured for logging on Netty's logger.- Overrides:
setLogActivityin classHttpClientOptions- Parameters:
logEnabled- true for logging the network activity- Returns:
- a reference to this, so the API can be used fluently
-
setDecoderInitialBufferSize
Description copied from class:HttpClientOptionsset toinitialBufferSizeHttpDecoderthe initial buffer of the HttpDecoder.- Overrides:
setDecoderInitialBufferSizein classHttpClientOptions- Parameters:
decoderInitialBufferSize- the initial buffer size- Returns:
- a reference to this, so the API can be used fluently
-