larksuite-oapi/src/main/java/com/larksuite/oapi/okhttp3_14/internal/http/HttpHeaders.java
private static String readQuotedString(Buffer buffer) {
    if (buffer.readByte() != '\"') throw new IllegalArgumentException();
    Buffer result = new Buffer();
    while (true) {
      long i = buffer.indexOfElement(QUOTED_STRING_DELIMITERS);
      if (i == -1L) return null; // Unterminated quoted string.

      if (buffer.getByte(i) == '"') {
        result.write(buffer, i);
        buffer.readByte(); // Consume '"'.
        return result.readUtf8();
      }

      if (buffer.size() == i + 1L) return null; // Dangling escape.
      result.write(buffer, i);
      buffer.readByte(); // Consume '\'.
      result.write(buffer, 1L); // The escaped character.
    }
  }
/**
   * Reads a double-quoted string, unescaping quoted pairs like {@code \"} to the 2nd character in
   * each sequence. Returns the unescaped string, or null if the buffer isn't prefixed with a
   * double-quoted string.
   */
Reads a double-quoted string, unescaping quoted pairs like  \" to the 2nd character in
each sequence. Returns the unescaped string, or null if the buffer isn't prefixed with a
double-quoted string.
Reads a double - quoted string unescaping quoted pairs like \ " to the 2nd character in each sequence . Returns the unescaped string or null if the buffer isn ' t prefixed with a double - quoted string .
private static String readQuotedString(Buffer buffer) {
    if (buffer.readByte() != '\"') throw new IllegalArgumentException();
    Buffer result = new Buffer();
    while (true) {
      long i = buffer.indexOfElement(QUOTED_STRING_DELIMITERS);
      if (i == -1L) return null; 
      if (buffer.getByte(i) == '"') {
        result.write(buffer, i);
        buffer.readByte(); 
        return result.readUtf8();
      }
      if (buffer.size() == i + 1L) return null; 
      result.write(buffer, i);
      buffer.readByte(); 
      result.write(buffer, 1L); 
    }
  }
private static String readQuotedString ( Buffer buffer ) { if ( buffer . readByte ( ) != '\"' ) throw new IllegalArgumentException ( ) ; Buffer result = new Buffer ( ) ; while ( true ) { long i = buffer . indexOfElement ( QUOTED_STRING_DELIMITERS ) ; if ( i == - 1L ) return null ; if ( buffer . getByte ( i ) == '"' ) { result . write ( buffer , i ) ; buffer . readByte ( ) ; return result . readUtf8 ( ) ; } if ( buffer . size ( ) == i + 1L ) return null ; result . write ( buffer , i ) ; buffer . readByte ( ) ; result . write ( buffer , 1L ) ; } }
Reads a double-quoted string, unescaping quoted pairs like {@code \"} to the 2nd character in
 each sequence.
Reads a double - quoted string unescaping quoted pairs like { @code \ " } to the 2nd character in each sequence .
// Unterminated quoted string. // Consume '"'. // Dangling escape. // Consume '\'. // The escaped character.