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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
//! # avx-http - Pure Rust HTTP/1.1 + HTTP/2 Library
//!
//! **ZERO external dependencies** - No tokio, no serde, no hyper, 100% proprietary!
//!
//! Everything implemented from scratch using only `std::*`:
//! - HTTP/1.1 parser (finite state machine)
//! - HTTP/2 frame parser, HPACK compression, multiplexing
//! - Custom async runtime (thread pool + I/O reactor)
//! - Zero-copy bytes buffer
//! - Pure Rust JSON parser
//! - Connection pooling
//!
//! ## Philosophy
//!
//! - **Zero Dependencies**: Full control, no supply chain attacks
//! - **Predictable Performance**: No hidden allocations or async overhead
//! - **Readable Code**: Algorithms you can understand and audit
//! - **Brazilian Latency**: Optimized for São Paulo DC (5-10ms)
//!
//! ## Quick Start
//!
//! ### HTTP/1.1 Client
//!
//! ```rust,no_run
//! use avx_http::Client;
//!
//! fn main() -> Result<(), Box<dyn std::error::Error>> {
//! let client = Client::new();
//! let response = client.get("http://api.avila.cloud/data")?;
//! println!("Status: {}", response.status());
//! println!("Body: {}", response.text()?);
//! Ok(())
//! }
//! ```
//!
//! ### HTTP/2 Client
//!
//! ```rust,no_run
//! use avx_http::http2::Http2Connection;
//! use avx_http::net::TcpStream;
//!
//! fn main() -> Result<(), Box<dyn std::error::Error>> {
//! let stream = TcpStream::connect("api.avila.cloud:443")?;
//! let mut conn = Http2Connection::new_client(stream)?;
//!
//! let stream_id = conn.request(
//! "GET",
//! "/data",
//! "api.avila.cloud",
//! vec![],
//! None,
//! )?;
//!
//! Ok(())
//! }
//! ```
extern crate alloc;
// Core modules - pure std implementation
// TLS support (optional)
// HTTP/2 implementation
// Re-exports
pub use ;
pub use ;
pub use Bytes;
pub use JsonValue;
/// Library version
pub const VERSION: &str = env!;
/// User agent string
pub const USER_AGENT: &str = concat!;