Skip to main content

Module http

Module http 

Source
Expand description

The streamable HTTP transport: each message is a POST whose reply is JSON or an event stream, plus a GET stream for messages the server starts. Port of transports/streamable-http.ts in pi-mcp v1.0.0.

Structs§

HttpOptions
How to reach a streamable HTTP server.
HttpTransport
A streamable HTTP connection. Cheap to clone, and clones share it.

Enums§

HttpAuth
pi’s AuthProvider: where a server’s bearer token comes from.

Type Aliases§

ProviderToken
The current token of a pi provider (/login), by provider id.