1#![forbid(unsafe_code)]
2#![deny(
3 clippy::dbg_macro,
4 missing_copy_implementations,
5 rustdoc::missing_crate_level_docs,
6 missing_debug_implementations,
7 missing_docs,
8 nonstandard_style,
9 unused_qualifications
10)]
11
12mod conn;
34pub use conn::{Conn, UnexpectedStatusError, USER_AGENT};
35
36#[cfg(feature = "json")]
37pub use conn::ClientSerdeError;
38
39#[cfg(feature = "websockets")]
40pub mod websocket;
41#[cfg(feature = "websockets")]
42pub use trillium_websockets::{async_tungstenite, tungstenite, WebSocketConfig, WebSocketConn};
43#[cfg(feature = "websockets")]
44pub use websocket::WebSocketUpgradeError;
45
46mod pool;
47pub(crate) use pool::Pool;
49
50mod client;
51pub use client::Client;
52
53pub use trillium_http::{
54 Body, Error, HeaderName, HeaderValue, HeaderValues, Headers, KnownHeaderName, Method, Result,
55 Status, Version,
56};
57
58mod util;
59
60pub use trillium_server_common::{async_trait, Connector, ObjectSafeConnector, Url};
61
62pub fn client(connector: impl Connector) -> Client {
64 Client::new(connector)
65}
66
67mod into_url;
68pub use into_url::IntoUrl;