public class HeadersFrame extends Frame
DEFAULT_MAX_LENGTH, EMPTY_ARRAY, HEADER_LENGTH, MAX_MAX_LENGTH| Constructor and Description |
|---|
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. |
| Modifier and Type | Method and Description |
|---|---|
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 © 1995–2017 Webtide. All rights reserved.