Http2Configuration

Undocumented in source.
class Http2Configuration {}

Constructors

this
this()
Undocumented in source.

Members

Functions

getCharacterEncoding
string getCharacterEncoding()

Get the charset of the text HTTP body.

getFlowControlStrategy
string getFlowControlStrategy()

Get the HTTP2 flow control strategy. The value is "simple" or "buffer". If you use the "simple" flow control strategy, once the server or client receives the data, it will send the WindowUpdateFrame. If you use the "buffer" flow control strategy, the server or client will send WindowUpdateFrame when the consumed data exceed the threshold.

getHttp2PingInterval
int getHttp2PingInterval()

Get the HTTP2 connection sending ping frame interval. The time unit is millisecond.

getInitialSessionRecvWindow
int getInitialSessionRecvWindow()

Get the HTTP2 initial receiving window size. The unit is byte.

getInitialStreamSendWindow
int getInitialStreamSendWindow()

Get the HTTP2 initial sending window size. The unit is byte.

getMaxConcurrentStreams
int getMaxConcurrentStreams()

Get the max concurrent stream size in a HTTP2 session.

getMaxDynamicTableSize
int getMaxDynamicTableSize()

Get the max dynamic table size of HTTP2 protocol.

getMaxHeaderBlockFragment
int getMaxHeaderBlockFragment()

Set the max HTTP2 header block size. If the header block size more the this value, the server or client will split the header buffer to many buffers to send.

getMaxRequestHeadLength
int getMaxRequestHeadLength()

Get the max HTTP request header size.

getMaxRequestTrailerLength
int getMaxRequestTrailerLength()

Get the max HTTP request trailer size.

getMaxResponseHeadLength
int getMaxResponseHeadLength()

Get the max HTTP response header size.

getMaxResponseTrailerLength
int getMaxResponseTrailerLength()

Get the max HTTP response trailer size.

getProtocol
string getProtocol()

Get the default HTTP protocol version. The value is "HTTP/2.0" or "HTTP/1.1". If the value is null, the server or client will negotiate a HTTP protocol version using ALPN.

getSecureSessionFactory
SecureSessionFactory getSecureSessionFactory()

Get the SSL/TLS connection factory.

getStreamIdleTimeout
int getStreamIdleTimeout()

Get the HTTP2 stream idle timeout. The time unit is millisecond.

getTcpConfiguration
hunt.net.Config.Config getTcpConfiguration()

Get the TCP configuration.

getWebsocketPingInterval
int getWebsocketPingInterval()

Get the WebSocket connection sending ping frame interval. The time unit is millisecond.

isSecureConnectionEnabled
bool isSecureConnectionEnabled()

If return true, the server or client enable the SSL/TLS connection.

setCharacterEncoding
void setCharacterEncoding(string characterEncoding)

Set the charset of the text HTTP body.

setFlowControlStrategy
void setFlowControlStrategy(string flowControlStrategy)

Set the HTTP2 flow control strategy. The value is "simple" or "buffer". If you use the "simple" flow control strategy, once the server or client receives the data, it will send the WindowUpdateFrame. If you use the "buffer" flow control strategy, the server or client will send WindowUpdateFrame when the consumed data exceed the threshold.

setHttp2PingInterval
void setHttp2PingInterval(int http2PingInterval)

Set the sending ping frame interval. The time unit is millisecond.

setInitialSessionRecvWindow
void setInitialSessionRecvWindow(int initialSessionRecvWindow)

Set the HTTP2 initial receiving window size. The unit is byte.

setInitialStreamSendWindow
void setInitialStreamSendWindow(int initialStreamSendWindow)

Set the HTTP2 initial sending window size. The unit is byte.

setMaxConcurrentStreams
void setMaxConcurrentStreams(int maxConcurrentStreams)

Set the max concurrent stream size in a HTTP2 session.

setMaxDynamicTableSize
void setMaxDynamicTableSize(int maxDynamicTableSize)

Set the max dynamic table size of HTTP2 protocol.

setMaxHeaderBlockFragment
void setMaxHeaderBlockFragment(int maxHeaderBlockFragment)

Get the max HTTP2 header block size. If the header block size more the this value, the server or client will split the header buffer to many buffers to send.

setMaxRequestHeadLength
void setMaxRequestHeadLength(int maxRequestHeadLength)

Set the max HTTP request header size.

setMaxRequestTrailerLength
void setMaxRequestTrailerLength(int maxRequestTrailerLength)

Set the max HTTP request trailer size.

setMaxResponseHeadLength
void setMaxResponseHeadLength(int maxResponseHeadLength)

Set the max HTTP response header size.

setMaxResponseTrailerLength
void setMaxResponseTrailerLength(int maxResponseTrailerLength)

Set the max HTTP response trailer size.

setProtocol
void setProtocol(string protocol)

Set the default HTTP protocol version. The value is "HTTP/2.0" or "HTTP/1.1". If the value is null, the server or client will negotiate a HTTP protocol version using ALPN.

setSecureConnectionEnabled
void setSecureConnectionEnabled(bool status)

If set true, the server or client enable the SSL/TLS connection.

setSecureSessionFactory
void setSecureSessionFactory(SecureSessionFactory secureSessionFactory)

Set the SSL/TLS connection factory.

setStreamIdleTimeout
void setStreamIdleTimeout(int streamIdleTimeout)

Set the HTTP2 stream idle timeout. The time unit is millisecond.

setTcpConfiguration
void setTcpConfiguration(hunt.net.Config.Config tcpConfiguration)

Set the TCP configuration.

setWebsocketPingInterval
void setWebsocketPingInterval(int websocketPingInterval)

Set the WebSocket connection sending ping frame interval. The time unit is millisecond.

Meta