classes.io.netty.handler.codec.http.HttpUtil.class Maven / Gradle / Ivy
???? 2?
\ ?
? ?
? ?
? ?
? ? ?
? ?
? ?
? ?
? ? ? ? ? ?
? ? ? ?
? ? ? ?
? ? ? ?
[ ?
? ?
? ? ? ?
? ?
[ ? ? ?
? ?
?
?
?
? ???
[ ?
? ? ? ? ? % ?
? ? ? ?
? ? ? ? ? , ?
? ? ? ? ?
? ?
? ? ?
? ? ?
?
?
<
?
[
[ A ?
? [
?
? A A! [" A#
[$
%&'
T ? [( ?)*
?+,-.
EMPTY_HEADERS .Lio/netty/handler/codec/http/EmptyHttpHeaders;
Deprecated RuntimeVisibleAnnotations Ljava/lang/Deprecated; CHARSET_EQUALS Lio/netty/util/AsciiString; SEMICOLON ()V Code LineNumberTable LocalVariableTable this &Lio/netty/handler/codec/http/HttpUtil; isOriginForm (Ljava/net/URI;)Z uri Ljava/net/URI;
StackMapTable isAsteriskForm isKeepAlive ,(Lio/netty/handler/codec/http/HttpMessage;)Z message )Lio/netty/handler/codec/http/HttpMessage;
connection Ljava/lang/CharSequence; setKeepAlive -(Lio/netty/handler/codec/http/HttpMessage;Z)V keepAlive Z V(Lio/netty/handler/codec/http/HttpHeaders;Lio/netty/handler/codec/http/HttpVersion;Z)V h )Lio/netty/handler/codec/http/HttpHeaders; httpVersion )Lio/netty/handler/codec/http/HttpVersion; getContentLength ,(Lio/netty/handler/codec/http/HttpMessage;)J value Ljava/lang/String; webSocketContentLength J/ -(Lio/netty/handler/codec/http/HttpMessage;J)J defaultValue -(Lio/netty/handler/codec/http/HttpMessage;I)I I getWebSocketContentLength ,(Lio/netty/handler/codec/http/HttpMessage;)I req )Lio/netty/handler/codec/http/HttpRequest; res *Lio/netty/handler/codec/http/HttpResponse;0 setContentLength -(Lio/netty/handler/codec/http/HttpMessage;J)V length isContentLengthSet m is100ContinueExpected set100ContinueExpected expected isTransferEncodingChunked setTransferEncodingChunked encodings Ljava/util/List; values valuesIt Ljava/util/Iterator; chunked LocalVariableTypeTable $Ljava/util/List; *Ljava/util/List; .Ljava/util/Iterator;12
getCharset E(Lio/netty/handler/codec/http/HttpMessage;)Ljava/nio/charset/Charset; _(Lio/netty/handler/codec/http/HttpMessage;Ljava/nio/charset/Charset;)Ljava/nio/charset/Charset; unsupportedException .Ljava/nio/charset/UnsupportedCharsetException; defaultCharset Ljava/nio/charset/Charset; charsetCharSequence34 getCharsetAsString C(Lio/netty/handler/codec/http/HttpMessage;)Ljava/lang/CharSequence; indexOfEncoding indexOfCharset contentTypeValue getMimeType indexOfSemicolon encodeAscii0 4(Ljava/lang/CharSequence;Lio/netty/buffer/ByteBuf;)V i seq buf Lio/netty/buffer/ByteBuf; c2b (C)B c C
SourceFile
HttpUtil.java e f5678797:7 *;7/<=>7?73@ABC c0DEFG cHIJKLMNOP c y }QRSTU cVWX ? ? java/lang/NumberFormatException java/lang/StringBuilder header not found: YZY[\7 e] ? ?^_` 'io/netty/handler/codec/http/HttpRequestabcdef cgJh c (io/netty/handler/codec/http/HttpResponseijklmn co cpqr ?stu cv cgwx cy czT{|1}O java/util/ArrayList e~?2?O?? java/lang/CharSequenceQ fS??? ? ? ? ? ?4?? ,java/nio/charset/UnsupportedCharsetException? c b c?? ?m?? d c?? ? ???? ,io/netty/handler/codec/http/EmptyHttpHeaders ] ^? c =?? ; $io/netty/handler/codec/http/HttpUtil java/lang/Object java/lang/String 'io/netty/handler/codec/http/HttpHeaders java/util/List java/util/Iterator 'io/netty/handler/codec/http/HttpMessage java/nio/charset/Charset java/net/URI getScheme ()Ljava/lang/String; getSchemeSpecificPart getHost getAuthority getPath equals (Ljava/lang/Object;)Z getQuery getFragment headers +()Lio/netty/handler/codec/http/HttpHeaders; +io/netty/handler/codec/http/HttpHeaderNames
CONNECTION get ,(Ljava/lang/CharSequence;)Ljava/lang/String; ,io/netty/handler/codec/http/HttpHeaderValues CLOSE io/netty/util/AsciiString contentEqualsIgnoreCase (Ljava/lang/CharSequence;)Z protocolVersion +()Lio/netty/handler/codec/http/HttpVersion; 'io/netty/handler/codec/http/HttpVersion isKeepAliveDefault ()Z
KEEP_ALIVE remove C(Ljava/lang/CharSequence;)Lio/netty/handler/codec/http/HttpHeaders; set U(Ljava/lang/CharSequence;Ljava/lang/Object;)Lio/netty/handler/codec/http/HttpHeaders; CONTENT_LENGTH java/lang/Long parseLong (Ljava/lang/String;)J append -(Ljava/lang/String;)Ljava/lang/StringBuilder; -(Ljava/lang/Object;)Ljava/lang/StringBuilder; toString (Ljava/lang/String;)V java/lang/Math min (JJ)J &io/netty/handler/codec/http/HttpMethod GET (Lio/netty/handler/codec/http/HttpMethod; method *()Lio/netty/handler/codec/http/HttpMethod; SEC_WEBSOCKET_KEY1 contains SEC_WEBSOCKET_KEY2 status 2()Lio/netty/handler/codec/http/HttpResponseStatus; .io/netty/handler/codec/http/HttpResponseStatus code ()I SEC_WEBSOCKET_ORIGIN SEC_WEBSOCKET_LOCATION valueOf (J)Ljava/lang/Long; HTTP_1_1 compareTo ,(Lio/netty/handler/codec/http/HttpVersion;)I EXPECT CONTINUE 4(Ljava/lang/CharSequence;Ljava/lang/CharSequence;Z)Z TRANSFER_ENCODING CHUNKED add getAll *(Ljava/lang/CharSequence;)Ljava/util/List; isEmpty (Ljava/util/Collection;)V iterator ()Ljava/util/Iterator; hasNext next ()Ljava/lang/Object; W(Ljava/lang/CharSequence;Ljava/lang/Iterable;)Lio/netty/handler/codec/http/HttpHeaders; io/netty/util/CharsetUtil
ISO_8859_1 forName .(Ljava/lang/String;)Ljava/nio/charset/Charset; CONTENT_TYPE indexOfIgnoreCaseAscii 4(Ljava/lang/CharSequence;Ljava/lang/CharSequence;I)I subSequence (II)Ljava/lang/CharSequence; charAt (I)C io/netty/buffer/ByteBuf writeByte (I)Lio/netty/buffer/ByteBuf; CHARSET of 5(Ljava/lang/CharSequence;)Lio/netty/util/AsciiString; 1 [ \ ] ^ _ ` a b c d c e f g / *? ? h - i j k l m g W "*? ? *? ? *? ? *? ? ? ? h 4 i " n o p @ q m g q <*? ? ? 1*? ? **? ? #*? ? *? ? *? ? *?
? ? ? h = i <