Skip to content

blackbull.server.http2_actor

blackbull.server.http2_actor

HTTP/2 Actor classes for the BlackBull Actor model (Phase 6 Step 4).

HTTP2Actor drives the HTTP/2 connection state machine for one TCP connection. StreamActor owns the lifetime of a single HTTP/2 stream.

HTTP2Actor

Bases: Actor

Drives the HTTP/2 connection state machine for one connection.

Supervisor strategy: propagate — framing errors send GOAWAY and raise, surfacing to the caller.

If aggregator is None the actor uses the legacy direct-dispatcher path (same behaviour as the pre-Actor HTTP2Handler).

receive() async

Read one HTTP/2 frame from the connection.

run() async

HTTP/2 connection state machine — process frames until connection closes.

send_frame(frame) async

Send a raw HTTP/2 frame via the control-plane sender.

StreamActor

Bases: Actor

Owns one HTTP/2 stream.

Single-shot like RequestActor: run() processes one stream and returns. Delegates to RequestActor for ASGI dispatch. Supervisor strategy: isolate — RST_STREAM on unhandled error.