streamable_http

package
v0.0.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// SessionCookieName is the name of the cookie used to store the session ID
	SessionCookieName = "mcp_session_id"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type StreamClient

type StreamClient struct {
	// contains filtered or unexported fields
}

StreamClient represents a connected streaming client

type StreamableHTTPHandlers

type StreamableHTTPHandlers struct {
	StreamHandler  http.HandlerFunc
	MessageHandler http.HandlerFunc
}

StreamableHTTPHandlers contains the HTTP handlers for streamable HTTP endpoints

type StreamableHTTPTransport

type StreamableHTTPTransport struct {
	// contains filtered or unexported fields
}

StreamableHTTPTransport implements bidirectional streaming over HTTP using WebSockets

func NewStreamableHTTPTransport

func NewStreamableHTTPTransport(opts ...transport.TransportOption) (*StreamableHTTPTransport, error)

func (*StreamableHTTPTransport) Close

func (*StreamableHTTPTransport) GetHandlers

GetHandlers returns the HTTP handlers for streamable HTTP endpoints

func (*StreamableHTTPTransport) Info

func (*StreamableHTTPTransport) Listen

func (*StreamableHTTPTransport) RegisterHandlers

func (s *StreamableHTTPTransport) RegisterHandlers(r *mux.Router)

RegisterHandlers registers the streamable HTTP handlers with the provided router

func (*StreamableHTTPTransport) Send

func (*StreamableHTTPTransport) SetSessionStore

func (s *StreamableHTTPTransport) SetSessionStore(store session.SessionStore)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL