Class Http2SubStream

  • All Implemented Interfaces:
    java.io.Serializable, scala.Equals, scala.Product

    public class Http2SubStream
    extends java.lang.Object
    implements scala.Product, java.io.Serializable
    Represents one direction of an Http2 substream.
    See Also:
    Serialized Form
    • Constructor Detail

      • Http2SubStream

        public Http2SubStream​(FrameEvent.ParsedHeadersFrame initialHeaders,
                              akka.util.OptionVal<FrameEvent.ParsedHeadersFrame> trailingHeaders,
                              scala.util.Either<akka.util.ByteString,​akka.stream.scaladsl.Source<java.lang.Object,​java.lang.Object>> data,
                              scala.collection.immutable.Map<AttributeKey<?>,​java.lang.Object> correlationAttributes)
    • Method Detail

      • data

        public scala.util.Either<akka.util.ByteString,​akka.stream.scaladsl.Source<java.lang.Object,​java.lang.Object>> data()
      • correlationAttributes

        public scala.collection.immutable.Map<AttributeKey<?>,​java.lang.Object> correlationAttributes()
      • streamId

        public int streamId()
      • hasEntity

        public boolean hasEntity()
      • withCorrelationAttributes

        public Http2SubStream withCorrelationAttributes​(scala.collection.immutable.Map<AttributeKey<?>,​java.lang.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)