classes.io.netty.handler.codec.http.HttpContentEncoder.class Maven / Gradle / Ivy
???? 2?
f ? ?
? a ? l ? a ? ? ? ] ? ? ?
? ? ? ? ] ? ? ? a ? ? ? a ? ? ?
? ? ? ? ? g ?
l ?
a ? a ? a ? ?
? ?
? ? a ? a ? ? ? ? ? ?
# ? ?
a ? l ? ? ) ?
U "
a
j ? ?
j
? ?
? ?
7
? l
a
a
> ?
>
W
>
> ?
a
a
? !"
N#
a$
f%
f&
'(
')*
U+,
U-
'.
a/0
[12
a34
a56
789 ?:;< InnerClasses= Result> State ZERO_LENGTH_HEAD Ljava/lang/CharSequence; ZERO_LENGTH_CONNECT
CONTINUE_CODE I acceptEncodingQueue Ljava/util/Queue; Signature +Ljava/util/Queue; acceptEncoding encoder +Lio/netty/channel/embedded/EmbeddedChannel; state 6Lio/netty/handler/codec/http/HttpContentEncoder$State; $assertionsDisabled Z ()V Code LineNumberTable LocalVariableTable this 0Lio/netty/handler/codec/http/HttpContentEncoder; acceptOutboundMessage (Ljava/lang/Object;)Z msg Ljava/lang/Object;
StackMapTable
Exceptions? decode d(Lio/netty/channel/ChannelHandlerContext;Lio/netty/handler/codec/http/HttpRequest;Ljava/util/List;)V ctx (Lio/netty/channel/ChannelHandlerContext; )Lio/netty/handler/codec/http/HttpRequest; out Ljava/util/List; acceptedEncoding meth (Lio/netty/handler/codec/http/HttpMethod; LocalVariableTypeTable $Ljava/util/List; ?@ x(Lio/netty/channel/ChannelHandlerContext;Lio/netty/handler/codec/http/HttpRequest;Ljava/util/List;)V encode c(Lio/netty/channel/ChannelHandlerContext;Lio/netty/handler/codec/http/HttpObject;Ljava/util/List;)V newRes *Lio/netty/handler/codec/http/HttpResponse; res code result 7Lio/netty/handler/codec/http/HttpContentEncoder$Result; (Lio/netty/handler/codec/http/HttpObject; isFull ?= w(Lio/netty/channel/ChannelHandlerContext;Lio/netty/handler/codec/http/HttpObject;Ljava/util/List;)V
isPassthru E(Lio/netty/handler/codec/http/HttpVersion;ILjava/lang/CharSequence;)Z version )Lio/netty/handler/codec/http/HttpVersion;
httpMethod
ensureHeaders +(Lio/netty/handler/codec/http/HttpObject;)V
ensureContent
encodeContent <(Lio/netty/handler/codec/http/HttpContent;Ljava/util/List;)Z last -Lio/netty/handler/codec/http/LastHttpContent; headers )Lio/netty/handler/codec/http/HttpHeaders; c )Lio/netty/handler/codec/http/HttpContent; content Lio/netty/buffer/ByteBuf;* ?A P(Lio/netty/handler/codec/http/HttpContent;Ljava/util/List;)Z beginEncode u(Lio/netty/handler/codec/http/HttpResponse;Ljava/lang/String;)Lio/netty/handler/codec/http/HttpContentEncoder$Result; handlerRemoved +(Lio/netty/channel/ChannelHandlerContext;)V channelInactive cleanup buf ,(Lio/netty/buffer/ByteBuf;Ljava/util/List;)V in @(Lio/netty/buffer/ByteBuf;Ljava/util/List;)V finishEncode (Ljava/util/List;)V '(Ljava/util/List;)V fetchEncoderOutput M(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;Ljava/util/List;)V ?Lio/netty/handler/codec/MessageToMessageCodec;
SourceFile HttpContentEncoder.java ~ java/util/ArrayDeque s tB { z { 'io/netty/handler/codec/http/HttpContent (io/netty/handler/codec/http/HttpResponse ?CDEFAGHIJKLM@8 ? n o9 ? p oNO ?PQRS +io/netty/handler/codec/http/LastHttpContentTUVW ? ? | } x y java/lang/AssertionErrorXYZ ?W q r w o[\ java/lang/CharSequence java/lang/IllegalStateException (cannot send more responses than requests ~]^_ ? ?` { io/netty/buffer/ByteBufHolder ?abcde ? ?fghFiejklFmnoFpqF /io/netty/handler/codec/http/DefaultHttpResponse ~rjst { ? ? ? ?uv ? java/lang/StringBuilder unexpected message type: wxyz{|e (expected: }ew~ ? ? ? ?C?c? ? 3io/netty/handler/codec/http/ComposedLastHttpContent ~? ? ? ? ? ???c?\ io/netty/buffer/ByteBuf?c java/lang/ObjectQa?? ? ? .io/netty/handler/codec/http/DefaultHttpContent ~? 'io/netty/handler/codec/http/HttpRequest ? ? &io/netty/handler/codec/http/HttpObject ? ? .io/netty/handler/codec/http/HttpContentEncoder?c HEAD CONNECT?? ,io/netty/handler/codec/MessageToMessageCodec 0io/netty/handler/codec/http/HttpContentEncoder$1 5io/netty/handler/codec/http/HttpContentEncoder$Result 4io/netty/handler/codec/http/HttpContentEncoder$State java/lang/Exception &io/netty/handler/codec/http/HttpMethod 'io/netty/handler/codec/http/HttpHeaders
AWAIT_HEADERS +()Lio/netty/handler/codec/http/HttpHeaders; +io/netty/handler/codec/http/HttpHeaderNames ACCEPT_ENCODING Lio/netty/util/AsciiString; get ,(Ljava/lang/CharSequence;)Ljava/lang/String; .io/netty/handler/codec/http/HttpContentDecoder IDENTITY Ljava/lang/String; method *()Lio/netty/handler/codec/http/HttpMethod; java/util/Queue add io/netty/util/ReferenceCountUtil retain &(Ljava/lang/Object;)Ljava/lang/Object; java/util/List ?$SwitchMap$io$netty$handler$codec$http$HttpContentEncoder$State [I ordinal ()I status 2()Lio/netty/handler/codec/http/HttpResponseStatus; .io/netty/handler/codec/http/HttpResponseStatus poll ()Ljava/lang/Object; (Ljava/lang/String;)V protocolVersion +()Lio/netty/handler/codec/http/HttpVersion; PASS_THROUGH ()Lio/netty/buffer/ByteBuf;
isReadable ()Z toString ()Ljava/lang/String; contentEncoder -()Lio/netty/channel/embedded/EmbeddedChannel; CONTENT_ENCODING targetContentEncoding set U(Ljava/lang/CharSequence;Ljava/lang/Object;)Lio/netty/handler/codec/http/HttpHeaders; CONTENT_LENGTH remove C(Ljava/lang/CharSequence;)Lio/netty/handler/codec/http/HttpHeaders; TRANSFER_ENCODING ,io/netty/handler/codec/http/HttpHeaderValues CHUNKED \(Lio/netty/handler/codec/http/HttpVersion;Lio/netty/handler/codec/http/HttpResponseStatus;)V T(Lio/netty/handler/codec/http/HttpHeaders;)Lio/netty/handler/codec/http/HttpHeaders;
AWAIT_CONTENT 'io/netty/handler/codec/http/HttpVersion HTTP_1_0 append -(Ljava/lang/String;)Ljava/lang/StringBuilder; getClass ()Ljava/lang/Class; java/lang/Class getName
getSimpleName (C)Ljava/lang/StringBuilder; trailingHeaders isEmpty EMPTY_LAST_CONTENT ,(Lio/netty/handler/codec/http/HttpHeaders;)V )io/netty/channel/embedded/EmbeddedChannel finish readOutbound release
writeOutbound ([Ljava/lang/Object;)Z (Lio/netty/buffer/ByteBuf;)V desiredAssertionStatus CONTINUE 0Lio/netty/handler/codec/http/HttpResponseStatus;! a f n o p o q r s t u v w o x y z { | } ~ ? M *? *? Y? ? *? ? ? ? 3 ? B E ? ? ? ? ? ? T +? ?
+? ? ? ? ? F ? ? ? ? ? ? @ ? ? ? ? ? U,? ?
? :? ? :,?
:? ? ? :? ? ? ? :*? ? W-,? ? W? ? . L M N Q R ( S 0 T 8 U = X I Y T Z ? > U ? ? U ? ? U ? ? U ? ? G ? o 5 ? ? ? U ? ? ? ? ?? ? ? ? u ? ? ? ? p ?,? ? ,? ? ? 6? *? ? .? ? ? ?,? ? ? *? ? ? Y? ?,? :? ? 6? ? *? ? $**? ? ! ? "? *? ?
? #Y$? %?? & *? ? '? *? -? ? W?=-? W*? (? ?*? "? )? * ? +? -? ? W?**? ? , ? -:? *? -? ? W? ?-? W*? (? ? ?*? .? ? / ? 0? 1? 2W? / ? 3? 4W? / ? 5? 6? 2W? 8? 7Y? & ? ? 8:? / ? / ? 9W-? W? -? W*? :? ,? ? ? :,? ;*,? -?