timvw-rust-runtime 0.2.0

Runtime for clients generated by openapi-generator-timvw-rust: a tower-based HTTP client with a reqwest-like request builder
Documentation
#![cfg_attr(
    all(feature = "reqwest", feature = "retry", feature = "tracing"),
    doc = include_str!("../README.md")
)]
#![cfg_attr(
    not(all(feature = "reqwest", feature = "retry", feature = "tracing")),
    doc = "Runtime for Rust clients generated by [openapi-generator-timvw-rust](https://github.com/timvw/openapi-generator-timvw-rust): a tower-based HTTP client. See the README for the guide."
)]
#![cfg_attr(docsrs, feature(doc_cfg))]

mod body;
mod client;
mod error;
pub mod multipart;
mod request;
mod request_options;
#[cfg(feature = "reqwest")]
mod reqwest_service;
mod response;
#[cfg(feature = "retry")]
pub mod retry;
pub mod sse;
#[cfg(feature = "tracing")]
pub mod trace;

pub use body::Body;
pub use client::{Client, HttpService};
pub use error::Error;
pub use request::RequestBuilder;
pub use request_options::RequestOptions;
#[cfg(feature = "reqwest")]
pub use reqwest_service::ReqwestService;
pub use response::Response;

pub use http;
pub use http::{header, HeaderMap, Method, StatusCode};
/// Credentials of a generated `Configuration` are [`SecretString`]s: their `Debug` is redacted, their memory is
/// zeroed when dropped, and [`ExposeSecret::expose_secret`] reads them.
pub use secrecy;
pub use secrecy::{ExposeSecret, SecretString};
pub use tower;

/// The error type services and layers return: any error that can cross threads.
pub type BoxError = Box<dyn std::error::Error + Send + Sync>;