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

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

Introduction

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

Prototype

long MIN_HEADER_LIST_SIZE

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

Click Source Link

Usage

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

License:Open Source License

/**
 * Set the {@literal SETTINGS_MAX_HEADER_LIST_SIZE} HTTP/2 setting
 *
 * @param maxHeaderListSize the new value
 * @return a reference to this, so the API can be used fluently
 *//*from   ww w  .j a va  2s .  c  o m*/
public Http2Settings setMaxHeaderListSize(long maxHeaderListSize) {
    Arguments.require(maxHeaderListSize >= 0, "maxHeaderListSize must be >= 0");
    Arguments.require(maxHeaderListSize >= Http2CodecUtil.MIN_HEADER_LIST_SIZE,
            "maxHeaderListSize must be >= " + Http2CodecUtil.MIN_HEADER_LIST_SIZE);
    this.maxHeaderListSize = maxHeaderListSize;
    return this;
}