AcpHttpClientTransport class final

Experimental ACP client transport over POST plus SSE.

The first write must be an individual initialize request. Stable HTTP transport deliberately rejects JSON-RPC batches. Connection SSE EOF is fatal; an idle session SSE may be reopened by a later session-scoped write. The transport never reconnects or replays messages automatically.

Constructors

AcpHttpClientTransport(Uri endpoint, {AcpHttpAdapter? adapter, AcpHttpHeaders headers = const AcpHttpHeaders(), AcpHttpCookiePolicy cookiePolicy = AcpHttpCookiePolicy.include, AcpAffinityCookieStore? cookieStore, AcpHttpClientLimits limits = const AcpHttpClientLimits(), JsonRpcCodec codec = const JsonRpcCodec(), AcpRemoteDiagnosticHandler? onDiagnostic})
Creates a lazy transport for endpoint.

Properties

connectionId String?
Current server-issued routing identifier after initialization.
no setter
done Future<void>
Completes after all local resources have been released.
no setter
endpoint Uri
Remote ACP endpoint.
final
hashCode int
The hash code for this object.
no setterinherited
isClosed bool
Whether the transport has stopped.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stream AcpDuplexStream<JsonRpcWireMessage>
Duplex JSON-RPC transport consumed by the connection layer.
latefinal

Methods

close() Future<void>
Stops local streams, sends a best-effort DELETE, and releases resources.
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