Expand description
Library to make HTTPs outcalls from a canister on the Internet Computer, leveraging the modularity of the tower framework.
Re-exports§
pub use convert::ConvertServiceBuilder;
Modules§
- convert
- Fallible conversion from one type to another that can be used as a tower middleware.
- cycles
- Middleware to handle cycles accounting.
- http
- Middleware to add an HTTP translation layer.
- observability
- Middleware that adds high level observability (e.g., logging, metrics) to a
Service. - retry
- Middleware for retrying “failed” requests.
Structs§
- Canister
Ready Layer - A
tower::Layerthat wraps services in aCanisterReadyServicemiddleware. - Canister
Ready Service - A
tower::Servicethat checks that the canister is running before calling the inner service. - Client
- Thin wrapper around
ic_cdk::management_canister::http_requestthat implements thetower::Servicetrait. Its functionality can be extended by composing so-called tower middlewares.
Enums§
- Canister
Ready Error - Error returned by the
CanisterReadyService. - IcError
- Error returned by the Internet Computer when making an HTTPs outcall.
Traits§
- Https
Outcall Error - Characterize errors that are specific to HTTPs outcalls.
- IsReplicated
Request Extension - Add support for selecting replicated or non-replicated HTTP outcalls.
- MaxResponse
Bytes Request Extension - Add support for max response bytes.
- Transform
Context Request Extension - Add support for transform context to specify how the response will be canonicalized by the replica to maximize chances of consensus.