Module bus.http

Class Http2Settings

java.lang.Object
org.miaixz.bus.http.metric.http.Http2Settings

public class Http2Settings extends Object
设置描述发送对等点的特征,接收对等点使用这些特征 设置的作用域是connection
Since:
Java 17+
Author:
Kimi Liu
  • Field Details

  • Constructor Details

    • Http2Settings

      public Http2Settings()
  • Method Details

    • clear

      public void clear()
    • set

      public Http2Settings set(int id, int value)
    • isSet

      public boolean isSet(int id)
      如果为设置id分配了一个值,则返回true
      Parameters:
      id - 标记
      Returns:
      the true/false
    • get

      public int get(int id)
      设置id的值,如果未设置则返回0
      Parameters:
      id - 标记
      Returns:
      the id
    • size

      public int size()
      具有指定值的设置的大小
      Returns:
      设置的大小
    • getHeaderTableSize

      public int getHeaderTableSize()
    • getEnablePush

      public boolean getEnablePush(boolean defaultValue)
    • getMaxConcurrentStreams

      public int getMaxConcurrentStreams(int defaultValue)
    • getMaxFrameSize

      public int getMaxFrameSize(int defaultValue)
    • getMaxHeaderListSize

      public int getMaxHeaderListSize(int defaultValue)
    • getInitialWindowSize

      public int getInitialWindowSize()
    • merge

      public void merge(Http2Settings other)
      other写入其中。如果使用this和other 填充任何设置,则将保留other中的值和标志
      Parameters:
      other - 设置信息