Class StreamableHttpTransport
- Namespace
- GenerativeAI.Types
- Assembly
- GenerativeAI.dll
Streamable HTTP transport settings for a server-side MCP server.
public class StreamableHttpTransport
- Inheritance
-
StreamableHttpTransport
- Inherited Members
- Extension Methods
Properties
Headers
HTTP headers sent with each request, for example authentication headers.
[JsonPropertyName("headers")]
public Dictionary<string, string>? Headers { get; set; }
Property Value
SseReadTimeout
Timeout for reading server-sent events, as a duration string (for example "300s").
[JsonPropertyName("sseReadTimeout")]
public string? SseReadTimeout { get; set; }
Property Value
TerminateOnClose
Whether to close the session when the transport is closed.
[JsonPropertyName("terminateOnClose")]
public bool? TerminateOnClose { get; set; }
Property Value
- bool?
Timeout
HTTP request timeout, as a duration string (for example "30s").
[JsonPropertyName("timeout")]
public string? Timeout { get; set; }
Property Value
Url
The URL of the MCP endpoint.
[JsonPropertyName("url")]
public string? Url { get; set; }