Top Methods
io.netty.handler.codec.http2

public Interface Http2FrameSizePolicy

Known Direct Implementers
io.netty.handler.codec.http2.DefaultHttp2FrameReader, io.netty.handler.codec.http2.DefaultHttp2FrameWriter
Annotations
@UnstableApi
Imports
io.netty.util.internal.UnstableApi

Method Summary

Modifier and TypeMethod and Description
public void
maxFrameSize(int max)

Sets the maximum allowed frame size.

public int
maxFrameSize()

Gets the maximum allowed frame size.

Method Detail

maxFrameSizeback to summary
public void maxFrameSize(int max) throws Http2Exception

Sets the maximum allowed frame size. Attempts to write frames longer than this maximum will fail.

This value is used to represent SETTINGS_MAX_FRAME_SIZE. This method should only be called by Netty (not users) as a result of a receiving a SETTINGS frame.

maxFrameSizeback to summary
public int maxFrameSize()

Gets the maximum allowed frame size.

This value is used to represent SETTINGS_MAX_FRAME_SIZE. The initial value defined by the RFC is unlimited but enforcing a lower limit is generally permitted. Http2CodecUtil#DEFAULT_MAX_FRAME_SIZE can be used as a more conservative default.