mithril_aggregator_client/
lib.rs

1#![warn(missing_docs)]
2//! This crate provides a client to request data from a Mithril Aggregator.
3//!
4
5mod builder;
6mod client;
7mod error;
8mod external_trait_impls;
9pub mod query;
10mod test;
11
12pub use builder::AggregatorClientBuilder;
13pub use client::AggregatorHttpClient;
14pub use error::AggregatorHttpClientError;
15
16pub(crate) const JSON_CONTENT_TYPE: reqwest::header::HeaderValue =
17    reqwest::header::HeaderValue::from_static("application/json");
18
19/// Aggregator-client result type
20pub type AggregatorHttpClientResult<T> = Result<T, AggregatorHttpClientError>;