HttpOptions

class HttpOptions {}

Constructors

this
this(TcpSslOptions tcpSslOptions)
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.

getKeyCertOptions
KeyCertOptions getKeyCertOptions()
Undocumented in source. Be warned that the author may not have intended to support it.
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.

getStreamIdleTimeout
int getStreamIdleTimeout()

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

getTcpConfiguration
TcpSslOptions getTcpConfiguration()

Get the TCP configuration.

getWebsocketPingInterval
int getWebsocketPingInterval()

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

isCertificateAuth
bool isCertificateAuth()
Undocumented in source. Be warned that the author may not have intended to support it.
isCertificateAuth
void isCertificateAuth(bool flag)
Undocumented in source. Be warned that the author may not have intended to support it.
isSecureConnectionEnabled
bool isSecureConnectionEnabled()

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

isSecureConnectionEnabled
void isSecureConnectionEnabled(bool status)

If set 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.

setKeyCertOptions
void setKeyCertOptions(KeyCertOptions options)
Undocumented in source. Be warned that the author may not have intended to support it.
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.

setRetryInterval
void setRetryInterval(Duration timeout)
Undocumented in source. Be warned that the author may not have intended to support it.
setRetryTimes
void setRetryTimes(int times)
Undocumented in source. Be warned that the author may not have intended to support it.
setSecureConnectionEnabled
void setSecureConnectionEnabled(bool status)
Undocumented in source. Be warned that the author may not have intended to support it.
setStreamIdleTimeout
void setStreamIdleTimeout(int streamIdleTimeout)

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

setTcpConfiguration
void setTcpConfiguration(TcpSslOptions tcpSslOptions)

Set the TCP configuration.

setWebsocketPingInterval
void setWebsocketPingInterval(int websocketPingInterval)

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

Variables

DEFAULT_WINDOW_SIZE
enum int DEFAULT_WINDOW_SIZE;
Undocumented in source.

Meta