rust_api_calling 1.0.0

A clean, idiomatic Rust HTTP client library with a single core request function and convenient GET/POST wrappers. Features builder pattern configuration, typed responses via serde generics, automatic session/cookie/XSRF management, and structured logging.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#![doc = include_str!("../README.md")]
#![warn(missing_docs)]

/// Core HTTP client, builder, session store, and HTTP method types.
pub mod client;
/// Strongly-typed error types for all API call failures.
pub mod error;
/// Per-request configuration (timeout, headers, bearer token).
pub mod request;
/// Generic API response wrapper with status, headers, and typed body.
pub mod response;

// Re-export the public API at the crate root for ergonomic usage:
//   use rust_api_calling::{ApiClient, ApiError, RequestConfig, ApiResponse};
pub use client::{ApiClient, ApiClientBuilder, HttpMethod, SessionStore};
pub use error::ApiError;
pub use request::RequestConfig;
pub use response::ApiResponse;