Package akka.http.impl.engine.http2
Class Http2SubStream
java.lang.Object
akka.http.impl.engine.http2.Http2SubStream
- All Implemented Interfaces:
Serializable
,scala.Equals
,scala.Product
Represents one direction of an Http2 substream.
- See Also:
-
Constructor Summary
ConstructorDescriptionHttp2SubStream
(FrameEvent.ParsedHeadersFrame initialHeaders, akka.util.OptionVal<FrameEvent.ParsedHeadersFrame> trailingHeaders, scala.util.Either<akka.util.ByteString, akka.stream.scaladsl.Source<Object, Object>> data, scala.collection.immutable.Map<AttributeKey<?>, Object> correlationAttributes) -
Method Summary
Modifier and TypeMethodDescriptionstatic Http2SubStream
apply
(HttpEntity entity, FrameEvent.ParsedHeadersFrame headers, akka.util.OptionVal<FrameEvent.ParsedHeadersFrame> trailingHeaders, scala.collection.immutable.Map<AttributeKey<?>, Object> correlationAttributes) scala.collection.immutable.Map<AttributeKey<?>,
Object> createEntity
(long contentLength, akka.util.OptionVal<ContentType> contentTypeOption) Create the request entity (when we're the server) or response entity (when we're the client) for this substreamdata()
boolean
int
streamId()
akka.util.OptionVal<FrameEvent.ParsedHeadersFrame>
withCorrelationAttributes
(scala.collection.immutable.Map<AttributeKey<?>, Object> newAttributes) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface scala.Equals
canEqual, equals
Methods inherited from interface scala.Product
productArity, productElement, productElementName, productElementNames, productIterator, productPrefix
-
Constructor Details
-
Http2SubStream
public Http2SubStream(FrameEvent.ParsedHeadersFrame initialHeaders, akka.util.OptionVal<FrameEvent.ParsedHeadersFrame> trailingHeaders, scala.util.Either<akka.util.ByteString, akka.stream.scaladsl.Source<Object, Object>> data, scala.collection.immutable.Map<AttributeKey<?>, Object> correlationAttributes)
-
-
Method Details
-
apply
public static Http2SubStream apply(HttpEntity entity, FrameEvent.ParsedHeadersFrame headers, akka.util.OptionVal<FrameEvent.ParsedHeadersFrame> trailingHeaders, scala.collection.immutable.Map<AttributeKey<?>, Object> correlationAttributes) -
initialHeaders
-
trailingHeaders
-
data
-
correlationAttributes
-
streamId
public int streamId() -
hasEntity
public boolean hasEntity() -
withCorrelationAttributes
public Http2SubStream withCorrelationAttributes(scala.collection.immutable.Map<AttributeKey<?>, Object> newAttributes) -
createEntity
public RequestEntity createEntity(long contentLength, akka.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)
-