Skip to main content

Module streaming_http

Module streaming_http 

Source
Expand description

Proprietary Prism HTTP transport extensions

This module implements historical Prism chunked/compressed endpoints. It is not the MCP 2026 Streamable HTTP conformance surface. Prefer HttpClientTransport and HttpServerTransport for interoperable MCP; these helpers require explicit ProtocolMode::LegacyOnly at the high-level client.

§Feature Requirements

# Cargo.toml - HTTP enhancements
[dependencies]
prism-mcp-rs = { version = "3", features = ["http", "chunked-encoding", "compression", "http2"] }

Individual features:

§Chunked Encoding Feature

[dependencies]
prism-mcp-rs = { version = "3", features = ["chunked-encoding"] }

Enables Prism-specific chunked request endpoints for matching legacy peers.

§Compression Feature

[dependencies]
prism-mcp-rs = { version = "3", features = ["compression"] }

Enables response compression with Gzip, Brotli, and Zstd algorithms.

§HTTP/2 Feature

[dependencies]
prism-mcp-rs = { version = "3", features = ["http2"] }

Enables HTTP/2 protocol support with multiplexing and server push.

§Capabilities

  • Chunked transfer encoding for large payloads
  • Response compression: Gzip, Brotli, Zstd
  • HTTP/2 protocol primitives
  • Configurable compression strategies
  • Backpressure and flow control

Use only when both peers explicitly implement these endpoints and deployment measurements justify the additional protocol surface.

Structs§

AdaptiveBuffer
AnalysisStats
ContentAnalyzer
smart content analyzer for streaming decisions
FlowControl
FlowControlMetrics
Http2Config
HTTP/2 specific configuration
Http2StreamManager
HTTP/2 stream management for bidirectional communication
NetworkMetrics
PushPromise
HTTP/2 Push Promise metadata
StreamInfo
StreamingAnalysis
StreamingBuffer
Streaming buffer with flow control
StreamingCompressor
Streaming compressor for multiple compression algorithms
StreamingConfig
Configuration for streaming HTTP transport
StreamingHttpClientTransport
Streaming HTTP client transport with advanced features

Enums§

CompressionType
ContentType
StreamState
StreamingStrategy

Type Aliases§

ServerPushHandler
HTTP/2 Server Push handler for processing pushed streams