public class HeadersFrame extends Frame
DEFAULT_MAX_LENGTH, EMPTY_ARRAY, HEADER_LENGTH, MAX_MAX_LENGTH| 构造器和说明 |
|---|
HeadersFrame(int streamId,
MetaData metaData,
PriorityFrame priority,
boolean endStream)
Creates a new
HEADERS frame with the specified stream id. |
HeadersFrame(MetaData metaData,
PriorityFrame priority,
boolean endStream)
Creates a new
HEADERS frame with an unspecified stream id
. |
| 限定符和类型 | 方法和说明 |
|---|---|
MetaData |
getMetaData() |
PriorityFrame |
getPriority() |
int |
getStreamId() |
boolean |
isEndStream() |
String |
toString() |
public HeadersFrame(MetaData metaData, PriorityFrame priority, boolean endStream)
Creates a new HEADERS frame with an unspecified stream id
.
The stream id will be generated by the implementation while
sending this frame to the other peer.
metaData - the metadata containing HTTP request informationpriority - the PRIORITY frame associated with this HEADERS frameendStream - whether this frame ends the streampublic HeadersFrame(int streamId,
MetaData metaData,
PriorityFrame priority,
boolean endStream)
Creates a new HEADERS frame with the specified stream id.
HEADERS frames with a specific stream id are typically
used in responses to request HEADERS frames.
streamId - the stream idmetaData - the metadata containing HTTP request/response informationpriority - the PRIORITY frame associated with this HEADERS frameendStream - whether this frame ends the streampublic int getStreamId()
public MetaData getMetaData()
public PriorityFrame getPriority()
public boolean isEndStream()
Copyright © 2017. All rights reserved.