public class Http2SubStream
extends java.lang.Object
implements scala.Product, java.io.Serializable
Constructor and Description |
---|
Http2SubStream(FrameEvent.ParsedHeadersFrame initialHeaders,
org.apache.pekko.util.OptionVal<FrameEvent.ParsedHeadersFrame> trailingHeaders,
scala.util.Either<org.apache.pekko.util.ByteString,org.apache.pekko.stream.scaladsl.Source<java.lang.Object,java.lang.Object>> data,
scala.collection.immutable.Map<AttributeKey<?>,java.lang.Object> correlationAttributes) |
Modifier and Type | Method and Description |
---|---|
static Http2SubStream |
apply(HttpEntity entity,
FrameEvent.ParsedHeadersFrame headers,
org.apache.pekko.util.OptionVal<FrameEvent.ParsedHeadersFrame> trailingHeaders,
scala.collection.immutable.Map<AttributeKey<?>,java.lang.Object> correlationAttributes) |
scala.collection.immutable.Map<AttributeKey<?>,java.lang.Object> |
correlationAttributes() |
RequestEntity |
createEntity(long contentLength,
org.apache.pekko.util.OptionVal<ContentType> contentTypeOption)
Create the request entity (when we're the server) or response entity (when we're the client) for this substream
|
scala.util.Either<org.apache.pekko.util.ByteString,org.apache.pekko.stream.scaladsl.Source<java.lang.Object,java.lang.Object>> |
data() |
boolean |
hasEntity() |
FrameEvent.ParsedHeadersFrame |
initialHeaders() |
int |
streamId() |
org.apache.pekko.util.OptionVal<FrameEvent.ParsedHeadersFrame> |
trailingHeaders() |
Http2SubStream |
withCorrelationAttributes(scala.collection.immutable.Map<AttributeKey<?>,java.lang.Object> newAttributes) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public Http2SubStream(FrameEvent.ParsedHeadersFrame initialHeaders, org.apache.pekko.util.OptionVal<FrameEvent.ParsedHeadersFrame> trailingHeaders, scala.util.Either<org.apache.pekko.util.ByteString,org.apache.pekko.stream.scaladsl.Source<java.lang.Object,java.lang.Object>> data, scala.collection.immutable.Map<AttributeKey<?>,java.lang.Object> correlationAttributes)
public static Http2SubStream apply(HttpEntity entity, FrameEvent.ParsedHeadersFrame headers, org.apache.pekko.util.OptionVal<FrameEvent.ParsedHeadersFrame> trailingHeaders, scala.collection.immutable.Map<AttributeKey<?>,java.lang.Object> correlationAttributes)
public FrameEvent.ParsedHeadersFrame initialHeaders()
public org.apache.pekko.util.OptionVal<FrameEvent.ParsedHeadersFrame> trailingHeaders()
public scala.util.Either<org.apache.pekko.util.ByteString,org.apache.pekko.stream.scaladsl.Source<java.lang.Object,java.lang.Object>> data()
public scala.collection.immutable.Map<AttributeKey<?>,java.lang.Object> correlationAttributes()
public int streamId()
public boolean hasEntity()
public Http2SubStream withCorrelationAttributes(scala.collection.immutable.Map<AttributeKey<?>,java.lang.Object> newAttributes)
public RequestEntity createEntity(long contentLength, org.apache.pekko.util.OptionVal<ContentType> contentTypeOption)
contentLength
- (undocumented)contentTypeOption
- (undocumented)