DVProtocolServer class
The backend half.
Constructors
- DVProtocolServer({required DVProtocolPlan plan, int sessionMemory = 10000, void onDiagnostic(String code, String message)?})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- plan → DVProtocolPlan
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sessionMemory → int
-
How many sessions
DV-PROTO-002remembers having reported. Bounded, so a flood of stale clients costs a fixed amount of memory.final
Methods
-
decide(
String? header, {String? session}) → DVProtocolDecision -
Decides what a request carrying
headeris served. -
handshake(
String? header, {String? session}) → Map< String, Object?> - The body a handshake request is answered with.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- header → const String
- The request header a client states its protocol in.
- resultHeader → const String
- The response header a backend states its decision in.