DefaultFlowStrategy

org.http4s.blaze.http.http2.DefaultFlowStrategy
final class DefaultFlowStrategy(localSettings: Http2Settings) extends FlowStrategy

Attributes

Source:
DefaultFlowStrategy.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

override def checkSession(session: SessionFlowControl): Int

Decide if the session window needs to send a WINDOW_UPDATE frame

Decide if the session window needs to send a WINDOW_UPDATE frame

Attributes

session

the session SessionFlowControl

Returns:

number of bytes to update the session flow window with.

Note:

This must not mutate the SessionFlowControl in any way.

This verison should only be used in situations where the stream associated with the data does not exist. For example, it may have already closed and sent a RST frame.

Definition Classes
Source:
DefaultFlowStrategy.scala
override def checkStream(stream: StreamFlowWindow): Increment

Decide if the stream and/or the session need a WINDOW_UPDATE frame

Decide if the stream and/or the session need a WINDOW_UPDATE frame

Attributes

stream

the stream StreamFlowWindow

Returns:

the number of bytes to update the session and stream flow window with.

Note:

This must not mutate the SessionFlowControl or the StreamFlowWindow in any way.

Definition Classes
Source:
DefaultFlowStrategy.scala