
okhttp3.internal.http1.Http1Codec.class Maven / Gradle / Ivy
???? 3? ?
_ ? ? ? ? ? ? ? ? ?
? ?
? ?
?????????
? ? ?
?
? ?
? ?
? ?
? ?
? ?
? ?
? ?
?
? ?
? ?
? ?
?
? ?
?
? ?
?
?
?
* ?
*
*
*
8 ?
8
8
8
8 !
*"
C ?
C#$
H ?
?% &'
&(
H)*
N+,
P-.
R-/
T01
?23
X+
45 67
48
69
6:;<= InnerClasses UnknownLengthSource
ChunkedSource FixedLengthSource> AbstractSource ChunkedSink FixedLengthSink
STATE_IDLE I
ConstantValue STATE_OPEN_REQUEST_BODY STATE_WRITING_REQUEST_BODY STATE_READ_RESPONSE_HEADERS STATE_OPEN_RESPONSE_BODY STATE_READING_RESPONSE_BODY STATE_CLOSED client Lokhttp3/OkHttpClient; streamAllocation .Lokhttp3/internal/connection/StreamAllocation; source Lokio/BufferedSource; sink Lokio/BufferedSink; state o(Lokhttp3/OkHttpClient;Lokhttp3/internal/connection/StreamAllocation;Lokio/BufferedSource;Lokio/BufferedSink;)V Code LineNumberTable LocalVariableTable this #Lokhttp3/internal/http1/Http1Codec; createRequestBody (Lokhttp3/Request;J)Lokio/Sink; request Lokhttp3/Request;
contentLength J
StackMapTable cancel ()V
connection ,Lokhttp3/internal/connection/RealConnection;? writeRequestHeaders (Lokhttp3/Request;)V requestLine Ljava/lang/String;
Exceptions openResponseBody *(Lokhttp3/Response;)Lokhttp3/ResponseBody; response Lokhttp3/Response;
Lokio/Source; getTransferStream !(Lokhttp3/Response;)Lokio/Source; isClosed ()Z flushRequest
finishRequest writeRequest &(Lokhttp3/Headers;Ljava/lang/String;)V i size headers Lokhttp3/Headers; readResponseHeaders Builder (Z)Lokhttp3/Response$Builder;
statusLine "Lokhttp3/internal/http/StatusLine; responseBuilder Lokhttp3/Response$Builder; exception Ljava/io/IOException; e Ljava/io/EOFException; expectContinue Z ? ? readHeaders ()Lokhttp3/Headers; line Lokhttp3/Headers$Builder;$ newChunkedSink
()Lokio/Sink; newFixedLengthSink (J)Lokio/Sink; newFixedLengthSource (J)Lokio/Source; length newChunkedSource (Lokhttp3/HttpUrl;)Lokio/Source; url Lokhttp3/HttpUrl; newUnknownLengthSource ()Lokio/Source;
detachTimeout (Lokio/ForwardingTimeout;)V timeout Lokio/ForwardingTimeout; oldDelegate Lokio/Timeout;
SourceFile Http1Codec.java okhttp3/internal/http/StatusLine ? ? !okhttp3/internal/http1/Http1Codec ? k z { | } ~ ? ? chunked Transfer-Encoding@ABCDE ? ? ? ? java/lang/IllegalStateException PCannot stream a request body without chunked encoding or a known content length! ?FG ?H? ? ?IJKLMNORSTU ? ? ? ? ? ? &okhttp3/internal/http/RealResponseBodyVWXY ?Z[\] ? ? ?^ ?_ ? ? ?` ? ?ab ? java/lang/StringBuilder state: cdcefghi
j ?klm : nmopgqr okhttp3/Response$Builderstsuv kvwx ?xy ? ? ?z java/io/EOFException java/io/IOException unexpected end of stream on c{|} okhttp3/Headers$Builder ?k~???? ? -okhttp3/internal/http1/Http1Codec$ChunkedSink ?? 1okhttp3/internal/http1/Http1Codec$FixedLengthSink ?? 3okhttp3/internal/http1/Http1Codec$FixedLengthSource /okhttp3/internal/http1/Http1Codec$ChunkedSource ?? streamAllocation == null? ? 5okhttp3/internal/http1/Http1Codec$UnknownLengthSource????? ??????? java/lang/Object okhttp3/internal/http/HttpCodec #okhttp3/internal/http1/Http1Codec$1 0okhttp3/internal/http1/Http1Codec$AbstractSource *okhttp3/internal/connection/RealConnection okhttp3/Request header &(Ljava/lang/String;)Ljava/lang/String; java/lang/String equalsIgnoreCase (Ljava/lang/String;)Z (Ljava/lang/String;)V ,okhttp3/internal/connection/StreamAllocation .()Lokhttp3/internal/connection/RealConnection; route ()Lokhttp3/Route;
okhttp3/Route proxy ()Ljava/net/Proxy; java/net/Proxy type? Type ()Ljava/net/Proxy$Type; !okhttp3/internal/http/RequestLine get :(Lokhttp3/Request;Ljava/net/Proxy$Type;)Ljava/lang/String; okhttp3/Response okio/Okio buffer $(Lokio/Source;)Lokio/BufferedSource; )(Lokhttp3/Headers;Lokio/BufferedSource;)V !okhttp3/internal/http/HttpHeaders hasBody (Lokhttp3/Response;)Z ()Lokhttp3/Request; ()Lokhttp3/HttpUrl; (Lokhttp3/Response;)J okio/BufferedSink flush append -(Ljava/lang/String;)Ljava/lang/StringBuilder; (I)Ljava/lang/StringBuilder; toString ()Ljava/lang/String; writeUtf8 '(Ljava/lang/String;)Lokio/BufferedSink; okhttp3/Headers ()I name (I)Ljava/lang/String; value okio/BufferedSource readUtf8LineStrict parse 6(Ljava/lang/String;)Lokhttp3/internal/http/StatusLine; protocol Lokhttp3/Protocol; .(Lokhttp3/Protocol;)Lokhttp3/Response$Builder; code (I)Lokhttp3/Response$Builder; message .(Ljava/lang/String;)Lokhttp3/Response$Builder; -(Lokhttp3/Headers;)Lokhttp3/Response$Builder; -(Ljava/lang/Object;)Ljava/lang/StringBuilder; initCause ,(Ljava/lang/Throwable;)Ljava/lang/Throwable; okhttp3/internal/Internal instance Lokhttp3/internal/Internal;
addLenient .(Lokhttp3/Headers$Builder;Ljava/lang/String;)V build &(Lokhttp3/internal/http1/Http1Codec;)V '(Lokhttp3/internal/http1/Http1Codec;J)V 7(Lokhttp3/internal/http1/Http1Codec;Lokhttp3/HttpUrl;)V noNewStreams okio/ForwardingTimeout delegate ()Lokio/Timeout; okio/Timeout NONE setDelegate ((Lokio/Timeout;)Lokio/ForwardingTimeout;
clearDeadline clearTimeout java/net/Proxy$Type 1 _ ` j k l m n k l o p k l q r k l s t k l u v k l w x k l y z { | } ~ ? ? ? k ? ? ? ? *? *? *+? *,? *-? *? ? ? X U Y Z [ \ ] ? 4 ? ? z { | } ~ ? ? ? ? ? ? + +
? ? ? *?
? ?? * ? ?? Y? ? ? ` b e g ! j ? + ? ? + ? ? + ? ? ?
? ? ? [ *? ? L+? +? ? ? o p q ? ? ? ? ? ? ? ? ? ? ? m +*? ? ? ? ? ? M*+? ,? ? ? ~ ~ ? ? ? ? ? ? ?
? ? ? C ? ? ? X *+? M? Y+? ,? ? ? ?
? ? ? ? ? ? ? ~ ? ? C ? ? ? ? ?+? !? * ? "? +
? #? ? *+? $? %? &?+? 'A ?? * ? "?*? (? ? " ? ?
? ? ' ? , ? 4 ? : ? ? ? ? ? ? ? ? , ? ? ?
? ? C ? ? ? D *? ? ? ? ? ? ? ? ? ?
@ ? ? ? 8
*? ? ) ? ?
? ? ?
? ? ? C ? ? ? 8
*? ? ) ? ?
? ? ?
? ? ? C ? ? ? ?*? ? !? Y? *Y? +,? -*? ? .? /? ?*? ,? 0 1? 0 W>+? 26? 0*? +? 3? 0 4? 0 +? 5? 0 1? 0 W????*? 1? 0 W*? ? ? . ? % ? 7 ? E ? U ? \ ? f ? l ? r ? ~ ? ? ? ? 4 9 9 ? k ? 3 ? k ? ? ? ? ? ? ? ? ? ? %? ? 2 ? C ? ? ? d ?*? ? )*? ? !? Y? *Y? +,? -*? ? .? /? ?*? ? 6 ? 7M? 8Y? 9,? :? ;,?