1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
//! # Reqwest Builder
//!
//! A builder for reqwest requests with support for custom headers, query parameters,
//! and body content, featuring comprehensive error handling.
//!
//! ## Features
//!
//! - **Builder Pattern**: Trait-based approach for converting request structures into reqwest builders
//! - **Multiple Body Types**: Support for JSON, form-encoded, multipart, and no-body requests
//! - **Error Handling**: Comprehensive error handling with detailed error messages
//! - **File Uploads**: Built-in support for file uploads with MIME type detection
//! - **Header Management**: Safe header serialization with proper error reporting
//!
//! ## Quick Start
//!
//! ```rust
//! use reqwest_builder::{IntoReqwestBuilder, RequestBody};
//! use serde::Serialize;
//!
//! #[derive(Serialize)]
//! struct CreateUserRequest {
//! name: String,
//! email: String,
//! }
//!
//! impl IntoReqwestBuilder for CreateUserRequest {
//! type Headers = ();
//!
//! fn method(&self) -> http::Method {
//! http::Method::POST
//! }
//!
//! fn endpoint(&self) -> String {
//! "/users".to_string()
//! }
//! }
//! ```
// Core modules
// Feature-gated modules
pub use *;
// Re-exports for convenience
pub use ReqwestBuilderError;
pub use FileUpload;
pub use ;
pub use ;
// Re-export serialization functions for advanced users
pub use ;