.class public final Lokhttp3/internal/http1/HeadersReader; .super Ljava/lang/Object; .source "HeadersReader.kt" # annotations .annotation system Ldalvik/annotation/MemberClasses; value = { Lokhttp3/internal/http1/HeadersReader$Companion; } .end annotation .annotation runtime Lkotlin/Metadata; bv = { 0x1, 0x0, 0x3 } d1 = { "\u0000(\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0010\t\n\u0002\u0008\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\u0008\u0002\u0018\u0000 \r2\u00020\u0001:\u0001\rB\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u00a2\u0006\u0002\u0010\u0004J\u0006\u0010\t\u001a\u00020\nJ\u0006\u0010\u000b\u001a\u00020\u000cR\u000e\u0010\u0005\u001a\u00020\u0006X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u0011\u0010\u0002\u001a\u00020\u0003\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u0007\u0010\u0008\u00a8\u0006\u000e" } d2 = { "Lokhttp3/internal/http1/HeadersReader;", "", "source", "Lokio/BufferedSource;", "(Lokio/BufferedSource;)V", "headerLimit", "", "getSource", "()Lokio/BufferedSource;", "readHeaders", "Lokhttp3/Headers;", "readLine", "", "Companion", "okhttp" } k = 0x1 mv = { 0x1, 0x4, 0x0 } .end annotation # static fields .field public static final Companion:Lokhttp3/internal/http1/HeadersReader$Companion; .field private static final HEADER_LIMIT:I = 0x40000 # instance fields .field private headerLimit:J .field private final source:Lokio/BufferedSource; # direct methods .method static constructor ()V .locals 2 new-instance v0, Lokhttp3/internal/http1/HeadersReader$Companion; const/4 v1, 0x0 invoke-direct {v0, v1}, Lokhttp3/internal/http1/HeadersReader$Companion;->(Lkotlin/jvm/internal/DefaultConstructorMarker;)V sput-object v0, Lokhttp3/internal/http1/HeadersReader;->Companion:Lokhttp3/internal/http1/HeadersReader$Companion; return-void .end method .method public constructor (Lokio/BufferedSource;)V .locals 2 const-string v0, "source" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 24 invoke-direct {p0}, Ljava/lang/Object;->()V iput-object p1, p0, Lokhttp3/internal/http1/HeadersReader;->source:Lokio/BufferedSource; const/high16 p1, 0x40000 int-to-long v0, p1 iput-wide v0, p0, Lokhttp3/internal/http1/HeadersReader;->headerLimit:J return-void .end method # virtual methods .method public final getSource()Lokio/BufferedSource; .locals 0 iget-object p0, p0, Lokhttp3/internal/http1/HeadersReader;->source:Lokio/BufferedSource; return-object p0 .end method .method public final readHeaders()Lokhttp3/Headers; .locals 3 .line 36 new-instance v0, Lokhttp3/Headers$Builder; invoke-direct {v0}, Lokhttp3/Headers$Builder;->()V .line 38 :goto_0 invoke-virtual {p0}, Lokhttp3/internal/http1/HeadersReader;->readLine()Ljava/lang/String; move-result-object v1 .line 39 move-object v2, v1 check-cast v2, Ljava/lang/CharSequence; invoke-interface {v2}, Ljava/lang/CharSequence;->length()I move-result v2 if-nez v2, :cond_0 .line 42 invoke-virtual {v0}, Lokhttp3/Headers$Builder;->build()Lokhttp3/Headers; move-result-object p0 return-object p0 .line 40 :cond_0 invoke-virtual {v0, v1}, Lokhttp3/Headers$Builder;->addLenient$okhttp(Ljava/lang/String;)Lokhttp3/Headers$Builder; goto :goto_0 .end method .method public final readLine()Ljava/lang/String; .locals 5 iget-object v0, p0, Lokhttp3/internal/http1/HeadersReader;->source:Lokio/BufferedSource; iget-wide v1, p0, Lokhttp3/internal/http1/HeadersReader;->headerLimit:J .line 29 invoke-interface {v0, v1, v2}, Lokio/BufferedSource;->readUtf8LineStrict(J)Ljava/lang/String; move-result-object v0 iget-wide v1, p0, Lokhttp3/internal/http1/HeadersReader;->headerLimit:J .line 30 invoke-virtual {v0}, Ljava/lang/String;->length()I move-result v3 int-to-long v3, v3 sub-long/2addr v1, v3 iput-wide v1, p0, Lokhttp3/internal/http1/HeadersReader;->headerLimit:J return-object v0 .end method