Skip to content

transport

Universal HTTP transport implementation

HTTP Transport - Common implementation for all protocols

Methods

fn new() -> Self

Create new HTTP transport

fn with_default_header(self, key: String, value: String) -> Self

Add default header for all requests

SSE Transport - For external MCP servers (web-standard)

Methods

fn new(endpoint_url: &str) -> Self

Create new SSE transport for MCP external servers

fn with_auth_header(self, auth_header: String) -> Self

Add authentication header for SSE connection

Transport Factory - Easy creation of transports

Methods

fn http() -> HttpTransport

Create HTTP transport with common defaults

fn a2a_http() -> HttpTransport

Create HTTP transport for A2A protocol

fn mcp_http() -> HttpTransport

Create HTTP transport for MCP protocol (internal)

fn mcp_sse(endpoint_url: &str) -> SseTransport

Create SSE transport for external MCP servers (web-standard)

fn mcp_sse_auth(endpoint_url: &str, auth_token: &str) -> SseTransport

Create SSE transport with authentication for external MCP servers

fn rest_http() -> HttpTransport

Create HTTP transport for REST