larksuite-oapi/src/main/java/com/larksuite/oapi/okhttp3_14/internal/http2/Http2Stream.java
public synchronized Headers takeHeaders() throws IOException {
    readTimeout.enter();
    try {
      while (headersQueue.isEmpty() && errorCode == null) {
        waitForIo();
      }
    } finally {
      readTimeout.exitAndThrowIfTimedOut();
    }
    if (!headersQueue.isEmpty()) {
      return headersQueue.removeFirst();
    }
    throw errorException != null ? errorException : new StreamResetException(errorCode);
  }
/**
   * Removes and returns the stream's received response headers, blocking if necessary until headers
   * have been received. If the returned list contains multiple blocks of headers the blocks will be
   * delimited by 'null'.
   */
Removes and returns the stream's received response headers, blocking if necessary until headers
have been received. If the returned list contains multiple blocks of headers the blocks will be
delimited by 'null'.
Removes and returns the stream ' s received response headers blocking if necessary until headers have been received . If the returned list contains multiple blocks of headers the blocks will be delimited by ' null ' .
public synchronized Headers takeHeaders() throws IOException {
    readTimeout.enter();
    try {
      while (headersQueue.isEmpty() && errorCode == null) {
        waitForIo();
      }
    } finally {
      readTimeout.exitAndThrowIfTimedOut();
    }
    if (!headersQueue.isEmpty()) {
      return headersQueue.removeFirst();
    }
    throw errorException != null ? errorException : new StreamResetException(errorCode);
  }
public synchronized Headers takeHeaders ( ) throws IOException { readTimeout . enter ( ) ; try { while ( headersQueue . isEmpty ( ) && errorCode == null ) { waitForIo ( ) ; } } finally { readTimeout . exitAndThrowIfTimedOut ( ) ; } if ( ! headersQueue . isEmpty ( ) ) { return headersQueue . removeFirst ( ) ; } throw errorException != null ? errorException : new StreamResetException ( errorCode ) ; }
Removes and returns the stream's received response headers, blocking if necessary until headers
 have been received.
Removes and returns the stream ' s received response headers blocking if necessary until headers have been received .