Http2Transport class

Cleartext/TLS HTTP/2 frame transport (RFC 9113, generated from http2-spec.rkt) over a TCP socket: a generated client can dial a stock gRPC server directly (grpc-java server, grpc-go server), no bridge process. TLS via dialTls (ALPN h2). Client endpoints only.

Implemented types

Properties

authority → String
final
hashCode → int
The hash code for this object.
no setterinherited
onMessage → Stream<Uint8List>
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scheme → String
final

Methods

close() → Future<void>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
send(Uint8List data) → void
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

dial(String authority) → Future<Http2Transport>
Cleartext (h2c, prior knowledge) connection to authority.
dialTls(String authority, SecurityContext context, {String? serverName}) → Future<Http2Transport>
TLS connection to authority (ALPN h2). context supplies trust material; serverName overrides SNI (defaults to the authority host).
huffDecode(Uint8List data, int off, int len) → String

Constants

flagAck → const int
flagEndHeaders → const int
flagEndStream → const int
flagPadded → const int
h2Continuation → const int
h2Data → const int
h2Headers → const int
h2Ping → const int
h2RstStream → const int
h2Settings → const int
h2WindowUpdate → const int
huffCodes → const List<int>
huffLens → const List<int>
maxFramePayload → const int
staticTable → const List<List<String>>