@UnstableApi public interface Http2Headers extends Headers<java.lang.CharSequence,java.lang.CharSequence,Http2Headers>
Modifier and Type | Interface and Description |
---|---|
static class |
Http2Headers.PseudoHeaderName
HTTP / 2伪头名称。
|
Modifier and Type | Method and Description |
---|---|
java.lang.CharSequence |
authority()
获取
Http2Headers.PseudoHeaderName.AUTHORITY 标题或
null 如果没有这样的标题
|
Http2Headers |
authority(java.lang.CharSequence value)
如果没有这样的标题,则设置
Http2Headers.PseudoHeaderName.AUTHORITY 标题或
null
|
boolean |
contains(java.lang.CharSequence name, java.lang.CharSequence value, boolean caseInsensitive)
返回
true 如果与头
name 和
value 存在,
false 其他。
|
java.util.Iterator<java.util.Map.Entry<java.lang.CharSequence,java.lang.CharSequence>> |
iterator()
返回所有HTTP / 2标题的迭代器。
|
java.lang.CharSequence |
method()
获取
Http2Headers.PseudoHeaderName.METHOD 标题或
null 如果没有这样的标题
|
Http2Headers |
method(java.lang.CharSequence value)
如果没有这样的标题,则设置
Http2Headers.PseudoHeaderName.METHOD 标题或
null
|
java.lang.CharSequence |
path()
获取
Http2Headers.PseudoHeaderName.PATH 标题或
null 如果没有这样的标题
|
Http2Headers |
path(java.lang.CharSequence value)
如果没有这样的标题,则设置
Http2Headers.PseudoHeaderName.PATH 标题或
null
|
java.lang.CharSequence |
scheme()
获取
Http2Headers.PseudoHeaderName.SCHEME 标题或
null 如果没有这样的标题
|
Http2Headers |
scheme(java.lang.CharSequence value)
如果没有这种标题,则设置
Http2Headers.PseudoHeaderName.SCHEME 标题
|
java.lang.CharSequence |
status()
获取
Http2Headers.PseudoHeaderName.STATUS 标题或
null 如果没有这样的标题
|
Http2Headers |
status(java.lang.CharSequence value)
如果没有这样的标题,则设置
Http2Headers.PseudoHeaderName.STATUS 标题或
null
|
java.util.Iterator<java.lang.CharSequence> |
valueIterator(java.lang.CharSequence name)
等同于
Headers.getAll(Object) ,但不生成中间列表。
|
add, add, add, add, addBoolean, addByte, addChar, addDouble, addFloat, addInt, addLong, addObject, addObject, addObject, addShort, addTimeMillis, clear, contains, contains, containsBoolean, containsByte, containsChar, containsDouble, containsFloat, containsInt, containsLong, containsObject, containsShort, containsTimeMillis, get, get, getAll, getAllAndRemove, getAndRemove, getAndRemove, getBoolean, getBoolean, getBooleanAndRemove, getBooleanAndRemove, getByte, getByte, getByteAndRemove, getByteAndRemove, getChar, getChar, getCharAndRemove, getCharAndRemove, getDouble, getDouble, getDoubleAndRemove, getDoubleAndRemove, getFloat, getFloat, getFloatAndRemove, getFloatAndRemove, getInt, getInt, getIntAndRemove, getIntAndRemove, getLong, getLong, getLongAndRemove, getLongAndRemove, getShort, getShort, getShortAndRemove, getShortAndRemove, getTimeMillis, getTimeMillis, getTimeMillisAndRemove, getTimeMillisAndRemove, isEmpty, names, remove, set, set, set, set, setAll, setBoolean, setByte, setChar, setDouble, setFloat, setInt, setLong, setObject, setObject, setObject, setShort, setTimeMillis, size
java.util.Iterator<java.util.Map.Entry<java.lang.CharSequence,java.lang.CharSequence>> iterator()
iterator
,界面
Headers<java.lang.CharSequence,java.lang.CharSequence,Http2Headers>
iterator
在界面
java.lang.Iterable<java.util.Map.Entry<java.lang.CharSequence,java.lang.CharSequence>>
java.util.Iterator<java.lang.CharSequence> valueIterator(java.lang.CharSequence name)
Headers.getAll(Object)
,但不会生成中间列表。
name
- 要检索的标题的名称
Iterator
的标题值对应于
name
。
Http2Headers method(java.lang.CharSequence value)
Http2Headers.PseudoHeaderName.METHOD
标题或
null
Http2Headers scheme(java.lang.CharSequence value)
Http2Headers.PseudoHeaderName.SCHEME
标题
Http2Headers authority(java.lang.CharSequence value)
Http2Headers.PseudoHeaderName.AUTHORITY
标题或
null
Http2Headers path(java.lang.CharSequence value)
Http2Headers.PseudoHeaderName.PATH
标题或
null
Http2Headers status(java.lang.CharSequence value)
Http2Headers.PseudoHeaderName.STATUS
标题或
null
java.lang.CharSequence method()
Http2Headers.PseudoHeaderName.METHOD
标题或
null
如果没有这样的标题
java.lang.CharSequence scheme()
Http2Headers.PseudoHeaderName.SCHEME
标题或
null
如果没有这样的标题
java.lang.CharSequence authority()
Http2Headers.PseudoHeaderName.AUTHORITY
标题或
null
如果没有这样的标题
java.lang.CharSequence path()
Http2Headers.PseudoHeaderName.PATH
标题或
null
如果没有这样的标题
java.lang.CharSequence status()
Http2Headers.PseudoHeaderName.STATUS
头或
null
如果没有这样的头
boolean contains(java.lang.CharSequence name, java.lang.CharSequence value, boolean caseInsensitive)
true
如果与头name
和value
存在, false
其他。
如果caseInsensitive
是true
则对值进行不区分大小写的比较。
name
- 要查找的标题的名称
value
- 标题的值查找
caseInsensitive
-
true
then a case insensitive compare is run to compare values. otherwise a case sensitive compare is run to compare values.
Copyright © 2008–2018 The Netty Project. All rights reserved.