Example usage for io.netty.handler.codec.http2 Http2CodecUtil MIN_HEADER_TABLE_SIZE

List of usage examples for io.netty.handler.codec.http2 Http2CodecUtil MIN_HEADER_TABLE_SIZE

Introduction

In this page you can find the example usage for io.netty.handler.codec.http2 Http2CodecUtil MIN_HEADER_TABLE_SIZE.

Prototype

long MIN_HEADER_TABLE_SIZE

To view the source code for io.netty.handler.codec.http2 Http2CodecUtil MIN_HEADER_TABLE_SIZE.

Click Source Link

Usage

From source file:io.vertx.core.http.Http2Settings.java

License:Open Source License

/**
 * Set {@literal SETTINGS_HEADER_TABLE_SIZE} HTTP/2 setting.
 *
 * @param headerTableSize the new value/*  w  ww . j av a 2s  .  co m*/
 * @return a reference to this, so the API can be used fluently
 */
public Http2Settings setHeaderTableSize(long headerTableSize) {
    Arguments.require(headerTableSize >= Http2CodecUtil.MIN_HEADER_TABLE_SIZE,
            "headerTableSize must be >= " + Http2CodecUtil.MIN_HEADER_TABLE_SIZE);
    Arguments.require(headerTableSize <= Http2CodecUtil.MAX_HEADER_TABLE_SIZE,
            "headerTableSize must be <= " + Http2CodecUtil.MAX_HEADER_TABLE_SIZE);
    this.headerTableSize = headerTableSize;
    return this;
}