transport
Universal HTTP transport implementation
Structs
Section titled “Structs”HttpTransport
Section titled “HttpTransport”HTTP Transport - Common implementation for all protocols
Methods
fn new() -> SelfCreate new HTTP transport
with_default_header
Section titled “with_default_header”fn with_default_header(self, key: String, value: String) -> SelfAdd default header for all requests
SseTransport
Section titled “SseTransport”SSE Transport - For external MCP servers (web-standard)
Methods
fn new(endpoint_url: &str) -> SelfCreate new SSE transport for MCP external servers
with_auth_header
Section titled “with_auth_header”fn with_auth_header(self, auth_header: String) -> SelfAdd authentication header for SSE connection
TransportFactory
Section titled “TransportFactory”Transport Factory - Easy creation of transports
Methods
fn http() -> HttpTransportCreate HTTP transport with common defaults
a2a_http
Section titled “a2a_http”fn a2a_http() -> HttpTransportCreate HTTP transport for A2A protocol
mcp_http
Section titled “mcp_http”fn mcp_http() -> HttpTransportCreate HTTP transport for MCP protocol (internal)
mcp_sse
Section titled “mcp_sse”fn mcp_sse(endpoint_url: &str) -> SseTransportCreate SSE transport for external MCP servers (web-standard)
mcp_sse_auth
Section titled “mcp_sse_auth”fn mcp_sse_auth(endpoint_url: &str, auth_token: &str) -> SseTransportCreate SSE transport with authentication for external MCP servers
rest_http
Section titled “rest_http”fn rest_http() -> HttpTransportCreate HTTP transport for REST