Class Http2SubStream
java.lang.Object
org.apache.pekko.http.impl.engine.http2.Http2SubStream
- All Implemented Interfaces:
- Serializable,- scala.Equals,- scala.Product
Represents one direction of an Http2 substream.
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionHttp2SubStream(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<Object, Object>> data, scala.collection.immutable.Map<AttributeKey<?>, Object> correlationAttributes) 
- 
Method SummaryModifier and TypeMethodDescriptionstatic Http2SubStreamapply(HttpEntity entity, FrameEvent.ParsedHeadersFrame headers, org.apache.pekko.util.OptionVal<FrameEvent.ParsedHeadersFrame> trailingHeaders, scala.collection.immutable.Map<AttributeKey<?>, Object> correlationAttributes) scala.collection.immutable.Map<AttributeKey<?>,Object> 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 substreamscala.util.Either<org.apache.pekko.util.ByteString,org.apache.pekko.stream.scaladsl.Source<Object, Object>> data()booleanintstreamId()org.apache.pekko.util.OptionVal<FrameEvent.ParsedHeadersFrame>withCorrelationAttributes(scala.collection.immutable.Map<AttributeKey<?>, Object> newAttributes) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface scala.EqualscanEqual, equalsMethods inherited from interface scala.ProductproductArity, productElement, productElementName, productElementNames, productIterator, productPrefix
- 
Constructor Details- 
Http2SubStreampublic 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<Object, Object>> data, scala.collection.immutable.Map<AttributeKey<?>, Object> correlationAttributes) 
 
- 
- 
Method Details- 
applypublic static Http2SubStream apply(HttpEntity entity, FrameEvent.ParsedHeadersFrame headers, org.apache.pekko.util.OptionVal<FrameEvent.ParsedHeadersFrame> trailingHeaders, scala.collection.immutable.Map<AttributeKey<?>, Object> correlationAttributes) 
- 
initialHeaders
- 
trailingHeaders
- 
data
- 
correlationAttributes
- 
streamIdpublic int streamId()
- 
hasEntitypublic boolean hasEntity()
- 
withCorrelationAttributespublic Http2SubStream withCorrelationAttributes(scala.collection.immutable.Map<AttributeKey<?>, Object> newAttributes) 
- 
createEntitypublic 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- Parameters:
- contentLength- (undocumented)
- contentTypeOption- (undocumented)
- Returns:
- (undocumented)
 
 
-