Package io.micronaut.http.client
Class HttpClientConfiguration.Http2ClientConfiguration
java.lang.Object
io.micronaut.http.client.HttpClientConfiguration.Http2ClientConfiguration
- Direct Known Subclasses:
DefaultHttpClientConfiguration.DefaultHttp2ClientConfiguration,ServiceHttpClientConfiguration.ServiceHttp2ClientConfiguration
- Enclosing class:
HttpClientConfiguration
HTTP/2-specific client configuration.
- Since:
- 4.6.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe default max header list size in bytes.static final StringThe prefix to use for configuration. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint[available in the Netty HTTP client].For HTTP/2 connections, the interval from the last message (inbound or outbound) to when an automated ping should be sent.For HTTP/2 connections, the interval from the last inbound message to when an automated ping should be sent.For HTTP/2 connections, the interval from the last outbound message to when an automated ping should be sent.voidsetMaxHeaderListSize(int maxHeaderListSize) Sets the maximum header list size the client can handle.voidsetPingIntervalIdle(@Nullable Duration pingIntervalIdle) For HTTP/2 connections, the interval from the last message (inbound or outbound) to when an automated ping should be sent.voidsetPingIntervalRead(@Nullable Duration pingIntervalRead) For HTTP/2 connections, the interval from the last inbound message to when an automated ping should be sent.voidsetPingIntervalWrite(@Nullable Duration pingIntervalWrite) For HTTP/2 connections, the interval from the last outbound message to when an automated ping should be sent.
-
Field Details
-
PREFIX
The prefix to use for configuration.- See Also:
-
DEFAULT_MAX_HEADER_LIST_SIZE
public static final int DEFAULT_MAX_HEADER_LIST_SIZEThe default max header list size in bytes.- See Also:
-
-
Constructor Details
-
Http2ClientConfiguration
public Http2ClientConfiguration()
-
-
Method Details
-
getPingIntervalRead
For HTTP/2 connections, the interval from the last inbound message to when an automated ping should be sent. This can be used to keep low-traffic connections alive.- Returns:
- The timeout when to send a ping frame
-
setPingIntervalRead
For HTTP/2 connections, the interval from the last inbound message to when an automated ping should be sent. This can be used to keep low-traffic connections alive.- Parameters:
pingIntervalRead- The timeout when to send a ping frame
-
getPingIntervalWrite
For HTTP/2 connections, the interval from the last outbound message to when an automated ping should be sent. This can be used to keep low-traffic connections alive.- Returns:
- The timeout when to send a ping frame
-
setPingIntervalWrite
For HTTP/2 connections, the interval from the last outbound message to when an automated ping should be sent. This can be used to keep low-traffic connections alive.- Parameters:
pingIntervalWrite- The timeout when to send a ping frame
-
getPingIntervalIdle
For HTTP/2 connections, the interval from the last message (inbound or outbound) to when an automated ping should be sent. This can be used to keep low-traffic connections alive.- Returns:
- The timeout when to send a ping frame
-
setPingIntervalIdle
For HTTP/2 connections, the interval from the last message (inbound or outbound) to when an automated ping should be sent. This can be used to keep low-traffic connections alive.- Parameters:
pingIntervalIdle- The timeout when to send a ping frame
-
getMaxHeaderListSize
public int getMaxHeaderListSize()[available in the Netty HTTP client].- Returns:
- The maximum allowed compressed header list size (in bytes) after decompression using HPACK (the HTTP/2 header compression algorithm).
-
setMaxHeaderListSize
Sets the maximum header list size the client can handle. Default value (8192).- Parameters:
maxHeaderListSize- The maximum header list size the client can handle
-