StreamableHttpTransportConfig class final
- Inheritance
-
- Object
- TransportConfig
- StreamableHttpTransportConfig
- Annotations
-
- @immutable
Constructors
-
StreamableHttpTransportConfig({String host = 'localhost', int port = 8080, String endpoint = '/messages', String messagesEndpoint = '/message', List<
int> fallbackPorts = const [], String? authToken, bool isJsonResponseEnabled = false, bool enableStateless = true, List<Middleware> middleware = const []}) -
const
Properties
- authToken → String?
-
Authentication token for secure connections
final
- enableStateless → bool
-
Serve the 2026-07-28 revision (no handshake, per-request
_meta) on the same endpoint as the session revisions (StreamableHttpServerConfig.enableStateless). On by default; setfalsefor a server that keeps per-session state.final - endpoint → String
-
The endpoint path for HTTP connections
final
-
fallbackPorts
→ List<
int> -
Fallback ports to try if the primary port is unavailable
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- host → String
-
The host to bind to
final
- isJsonResponseEnabled → bool
-
Whether to enable JSON response mode instead of SSE streaming
final
- messagesEndpoint → String
-
No effect: Streamable HTTP has one endpoint (endpoint). Kept so 2.x
calls compile.
final
-
middleware
→ List<
Middleware> -
No effect: the transport is not built on a shelf pipeline. Kept so 2.x
calls compile.
final
- port → int
-
The port to listen on
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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