Class Http1ServerConfig
java.lang.Object
io.vertx.core.http.Http1ServerConfig
HTTP/1.x server configuration.
- Author:
- Julien Viet
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintintintsetDecoderInitialBufferSize(int decoderInitialBufferSize) Set the initial buffer size for the HTTP decodersetMaxChunkSize(int maxChunkSize) Set the maximum HTTP chunk size thatHttpServerRequest.handler(Handler)will receivesetMaxHeaderSize(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.
-
Constructor Details
-
Http1ServerConfig
public Http1ServerConfig() -
Http1ServerConfig
-
-
Method Details
-
setMaxChunkSize
Set the maximum HTTP chunk size thatHttpServerRequest.handler(Handler)will receive- Parameters:
maxChunkSize- the maximum chunk size- Returns:
- a reference to this, so the API can be used fluently
-
getMaxChunkSize
public int getMaxChunkSize()- Returns:
- the maximum HTTP chunk size that
HttpServerRequest.handler(Handler)will receive
-
getMaxInitialLineLength
public int getMaxInitialLineLength()- Returns:
- the maximum length of the initial line for HTTP/1.x (e.g.
"GET / HTTP/1.0")
-
setMaxInitialLineLength
Set the maximum length of the initial line for HTTP/1.x (e.g."GET / HTTP/1.0")- Parameters:
maxInitialLineLength- the new maximum initial length- Returns:
- a reference to this, so the API can be used fluently
-
getMaxHeaderSize
public int getMaxHeaderSize()- Returns:
- Returns the maximum length of all headers for HTTP/1.x
-
setMaxHeaderSize
Set the maximum length of all headers for HTTP/1.x .- Parameters:
maxHeaderSize- the new maximum length- Returns:
- a reference to this, so the API can be used fluently
-
getDecoderInitialBufferSize
public int getDecoderInitialBufferSize()- Returns:
- the initial buffer size for the HTTP decoder
-
setDecoderInitialBufferSize
Set the initial buffer size for the HTTP decoder- Parameters:
decoderInitialBufferSize- the initial size- Returns:
- a reference to this, so the API can be used fluently
-