org.http4s.blaze.http.http2

Type members

Classlikes

case class DataFrame(endStream: Boolean, data: ByteBuffer) extends StreamFrame

Data frame for http2

Data frame for http2

Value Params
data

actual stream data. The ByteBuffer indexes may be modified by the receiver. The ByteBuffer indexes are considered owned by this DataFrame, but its data must not be modified.

endStream

if this is the last message of the stream

final class DefaultFlowStrategy(localSettings: Http2Settings) extends FlowStrategy

FlowStrategy advises a session when to send window updates

FlowStrategy advises a session when to send window updates

A FlowStrategy will be shared among many sessions.

Companion
object
object FlowStrategy
Companion
class
class HeaderEncoder(initialMaxTableSize: Int)

HTTP/2 HPACK header encoder

HTTP/2 HPACK header encoder

Value Params
initialMaxTableSize

maximum HPACK table size the peer will allow.

case class HeadersFrame(priority: Priority, endStream: Boolean, headers: Headers) extends StreamFrame

Headers frame for http2

Headers frame for http2

Value Params
endStream

signal if this is the last frame of the stream

headers

attached headers

priority

priority of this stream

sealed abstract class Http2Exception(msg: String) extends Exception with NoStackTrace with Product with Serializable
Companion
object
Companion
class
final case class Http2SessionException(code: Long, msg: String) extends Http2Exception
sealed abstract class Http2Settings

A bundle of HTTP2 settings

A bundle of HTTP2 settings

These represent the HTTP2 settings for either the client or server.

See also

https://tools.ietf.org/html/rfc7540#section-6.5.2, where the doc strings were obtained.

Companion
object
Companion
class
final case class Http2StreamException(stream: Int, code: Long, msg: String) extends Http2Exception
case class ImmutableHttp2Settings(headerTableSize: Int, initialWindowSize: Int, pushEnabled: Boolean, maxConcurrentStreams: Int, maxFrameSize: Int, maxHeaderListSize: Int) extends Http2Settings

Immutable representation of Http2Settings for configuring clients and servers

Immutable representation of Http2Settings for configuring clients and servers

abstract class PriorKnowledgeHandshaker[T](localSettings: ImmutableHttp2Settings) extends TailStage[ByteBuffer]

Base type for performing the HTTP/2 prior knowledge handshake

Base type for performing the HTTP/2 prior knowledge handshake

sealed trait Priority
Companion
object
object Priority
Companion
class

HTTP/2 pseudo headers

HTTP/2 pseudo headers

abstract class SessionFlowControl

Flow control representation of a Http2 Session

Flow control representation of a Http2 Session

abstract class StreamFlowWindow

Representation of the flow control state of a stream belonging to a session

Representation of the flow control state of a stream belonging to a session

The StreamFlowWindow provides the tools for tracking the flow window for both the individual stream and the session that it belongs to.

sealed trait StreamFrame

Types that will be sent down to the Nodes of the Http2 session

Types that will be sent down to the Nodes of the Http2 session