pub const ALPN_HTTP_1_1: &[u8] = b"http/1.1";
pub const ALPN_H2: &[u8] = b"h2";
#[derive(Debug, Clone, Default)]
pub struct ConnectOptions {
pub protocols: Vec<String>,
pub headers: Vec<(String, String)>,
}
#[derive(Debug, Clone, Default)]
pub struct ServerOptions {
pub protocols: Vec<String>,
pub headers: Vec<(String, String)>,
}
pub fn default_ws_alpn() -> Vec<Vec<u8>> {
vec![ALPN_HTTP_1_1.to_vec(), ALPN_H2.to_vec()]
}