Skip to main content

Module protocol

Module protocol 

Source
Expand description

Sigil Protocol Support

This module provides comprehensive protocol support for the Sigil standard library, enabling programs to communicate across network boundaries using various protocols.

§Supported Protocols

  • gRPC: High-performance RPC framework with Protocol Buffers
  • HTTP: HTTP/1.1 and HTTP/2 client with streaming support
  • WebSocket: Bidirectional real-time communication
  • GraphQL: Flexible query language client
  • Kafka: Event streaming and message queue
  • AMQP: Message queue protocol (RabbitMQ compatible)

§Philosophy

All network data is treated as “reported” (~) evidence by default, requiring explicit validation to promote to “known” (!) status. This ensures programs explicitly handle the uncertainty inherent in distributed systems.

Re-exports§

pub use common::BackoffStrategy;
pub use common::Headers;
pub use common::ProtocolError;
pub use common::ProtocolResult;
pub use common::RetryConfig;
pub use common::StatusCode;
pub use common::Timeout;
pub use common::Uri;

Modules§

common
Common Protocol Types
http
HTTP Client Support
websocket
WebSocket Support