semiont_http_transport/lib.rs
1//! Semiont's HTTP transport: a knowledge base's bus over its gateway's HTTP
2//! surface, as `semiont::transport::Transport` (`transport`, with its stream
3//! in `actor` and the stream's framing in `sse`); its bytes, as
4//! `ContentTransport` (`content`); the gateway's own operations, as
5//! `GatewayOperations`; and the SDK's client over the three (`client`).
6//!
7//! And the sign-in that reaches it. For a service: its account's token at
8//! the issuer (`service_account`), proved by its secret or by an assertion
9//! signed with its key (`client_assertion`), and its bearer at the gateway
10//! as the agent it is (`agent`). For a person, behind the `sign-in` feature:
11//! the issuer's grants (`oauth`), sessions over a gateway and a registry's
12//! sign-in (`session`), the address an application with no web page is sent
13//! back to (`loopback`), and a launcher's discovery document over HTTP
14//! (`discovery`). A service links none of those.
15
16#![forbid(unsafe_code)]
17// What arrives off the wire is never assumed to be what was expected, and
18// neither is anything else: the library has no `unwrap` and no `expect`.
19#![cfg_attr(not(test), deny(clippy::unwrap_used, clippy::expect_used))]
20
21mod actor;
22pub mod agent;
23pub mod client;
24pub mod client_assertion;
25pub mod content;
26#[cfg(feature = "sign-in")]
27pub mod discovery;
28#[cfg(feature = "sign-in")]
29pub mod loopback;
30#[cfg(feature = "sign-in")]
31pub mod oauth;
32pub mod service_account;
33#[cfg(feature = "sign-in")]
34pub mod session;
35mod sse;
36pub mod transport;