类:StreamableHttpServerParameters

java.lang.Object
com.google.adk.tools.mcp.StreamableHttpServerParameters

public class StreamableHttpServerParameters extends Object
用于 Streamable HTTP 客户端传输的服务器参数。
  • 构造函数详细信息

    • StreamableHttpServerParameters

      public StreamableHttpServerParameters(String url, Map<String,String> headers, @Nullable Duration timeout, @Nullable Duration readTimeout, @Nullable Boolean terminateOnClose)
      用于 Streamable HTTP 客户端传输的服务器参数。
      Parameters:
      url - The base URL for the MCP Streamable HTTP server.
      headers - Optional headers to include in requests.
      timeout - Timeout for HTTP operations (default: 30 seconds).
      readTimeout - Timeout for reading data from the streamed http events(default: 5 minutes).
      terminateOnClose - Whether to terminate the session on close (default: true).
  • 方法详细信息(Method Details)