Skip to main content

typeway_client/
lib.rs

1//! `typeway-client` — type-safe HTTP client derived from Typeway API types.
2//!
3//! The client calls endpoints using the same types as the server. If the
4//! server's API type changes, the client fails to compile until updated.
5
6pub mod call;
7pub mod client;
8pub mod config;
9pub mod error;
10pub mod interceptor;
11pub mod methods;
12pub mod request_builder;
13pub mod retry;
14pub mod streaming;
15pub mod tracing_interceptor;
16pub mod typed_response;
17
18pub use call::CallEndpoint;
19pub use client::Client;
20pub use config::ClientConfig;
21pub use error::ClientError;
22pub use interceptor::{RequestInterceptor, ResponseInterceptor};
23pub use request_builder::RequestBuilder;
24pub use retry::RetryPolicy;
25pub use tracing_interceptor::with_tracing;
26pub use typed_response::TypedResponse;