code: private Http2Settings decodeSettings(ChannelHandlerContext ctx, ByteBuf frame) throws Http2Exception {
          try {
              final Http2Settings decodedSettings = new Http2Settings();
              frameReader.readFrame(ctx, frame, new Http2FrameAdapter() {
                  @Override
                  public void onSettingsRead(ChannelHandlerContext ctx, Http2Settings settings) {
                      decodedSettings.copyFrom(settings);
                  }
              });
              return decodedSettings;
          } finally {
              frame.release();
          }
      }
docs: Decodes the settings frame and returns the settings.