class

MCP::Client::HttpClientTransport

Inherits MCP::Shared::AbstractTransport < MCP::Shared::Transport < Reference < Object

Constructors

new(endpoint : String)
Source

Instance methods

base_url
Source
close

Closes the connection

Source
endpoint
Source
headers
Source
http_client
Source
http_client=(http_client : HTTP::Client | Nil)
Source

Sends a JSON-RPC message

Source
start

Starts processing messages, including any connection steps

Source
with_base_url(url : String) : self
Source
with_client(client : HTTP::Client) : self
Source
with_header(key : String, value : String) : self
Source