content: package okhttp3.internal.http1;
  
  import kotlin.Metadata;
  import kotlin.jvm.internal.DefaultConstructorMarker;
  import kotlin.jvm.internal.Intrinsics;
  import okhttp3.Headers;
  import okio.BufferedSource;
  
  @Metadata(bv = {1, 0, 3}, d1 = {"\u0000(\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\t\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0002\u0018\u0000 \r2\u00020\u0001:\u0001\rB\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004J\u0006\u0010\t\u001a\u00020\nJ\u0006\u0010\u000b\u001a\u00020\fR\u000e\u0010\u0005\u001a\u00020\u0006X\u000e¢\u0006\u0002\n\u0000R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0007\u0010\b¨\u0006\u000e"}, d2 = {"Lokhttp3/internal/http1/HeadersReader;", "", "source", "Lokio/BufferedSource;", "(Lokio/BufferedSource;)V", "headerLimit", "", "getSource", "()Lokio/BufferedSource;", "readHeaders", "Lokhttp3/Headers;", "readLine", "", "Companion", "okhttp"}, k = 1, mv = {1, 4, 0})
  /* compiled from: HeadersReader.kt */
  public final class HeadersReader {
      public static final Companion Companion = new Companion((DefaultConstructorMarker) null);
      private static final int HEADER_LIMIT = 262144;
      private long headerLimit = ((long) 262144);
      private final BufferedSource source;
  
      @Metadata(bv = {1, 0, 3}, d1 = {"\u0000\u0012\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\b\n\u0000\b\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002R\u000e\u0010\u0003\u001a\u00020\u0004XT¢\u0006\u0002\n\u0000¨\u0006\u0005"}, d2 = {"Lokhttp3/internal/http1/HeadersReader$Companion;", "", "()V", "HEADER_LIMIT", "", "okhttp"}, k = 1, mv = {1, 4, 0})
      /* compiled from: HeadersReader.kt */
      public static final class Companion {
          private Companion() {
          }
  
          public /* synthetic */ Companion(DefaultConstructorMarker $constructor_marker) {
              this();
          }
      }
  
      public HeadersReader(BufferedSource source2) {
          Intrinsics.checkNotNullParameter(source2, "source");
          this.source = source2;
      }
  
      public final BufferedSource getSource() {
          return this.source;
      }
  
      public final Headers readHeaders() {
          Headers.Builder builder = new Headers.Builder();
          while (true) {
              String readLine = readLine();
              if (readLine.length() == 0) {
                  return builder.build();
              }
              builder.addLenient$okhttp(readLine);
          }
      }
  
      public final String readLine() {
          String readUtf8LineStrict = this.source.readUtf8LineStrict(this.headerLimit);
          this.headerLimit -= (long) readUtf8LineStrict.length();
          return readUtf8LineStrict;
      }
  }
  