ZapHost class

The ZAP host: one line in, zero or more reply lines out.

Constructors

ZapHost({ZapStepExecutor? executor, String? workingDirectory, String? checkpointDir, Duration defaultStepTimeout = const Duration(seconds: 60)})

Properties

checkpointDir → String?
final
defaultStepTimeout → Duration
final
executor → ZapStepExecutor
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
workingDirectory → String?
final

Methods

handleLine(String line, {required FutureOr<void> emit(String reply)}) → Future<void>
Processes one inbound NDJSON line; every reply is emitted through emit as a complete NDJSON line. Never throws for message-level problems — they become error envelopes.
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