Class Http1ServerConfig

java.lang.Object
io.vertx.core.http.Http1ServerConfig

@Unstable public class Http1ServerConfig extends Object
HTTP/1.x server configuration.
Author:
Julien Viet
  • Constructor Details

    • Http1ServerConfig

      public Http1ServerConfig()
    • Http1ServerConfig

      public Http1ServerConfig(Http1ServerConfig other)
  • Method Details

    • setMaxChunkSize

      public Http1ServerConfig setMaxChunkSize(int maxChunkSize)
      Set the maximum HTTP chunk size that HttpServerRequest.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

      public Http1ServerConfig setMaxInitialLineLength(int maxInitialLineLength)
      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

      public Http1ServerConfig setMaxHeaderSize(int maxHeaderSize)
      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

      public Http1ServerConfig setDecoderInitialBufferSize(int decoderInitialBufferSize)
      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