docs: public void resetBuffer() {
          if(anyAreSet(state, FLAG_WRITE_STARTED)) {
              throw UndertowMessages.MESSAGES.cannotResetBuffer();
          }
          buffer = null;
          IoUtils.safeClose(pooledBuffer);
          pooledBuffer = null;
      }