use ntex_bytes::{ByteString, Bytes};
use ntex_util::time::Seconds;

// Constants
pub(crate) const MAX_WINDOW_SIZE: i32 = i32::MAX;
pub(crate) const DEFAULT_MAX_HEADERS: usize = 96;
pub(crate) const DEFAULT_MAX_CONCURRENT_STREAMS: u32 = 256;
pub(crate) const DEFAULT_RESET_STREAM_MAX: usize = 32;
pub(crate) const DEFAULT_RESET_STREAM_SECS: Seconds = Seconds(30);
pub(crate) const DEFAULT_CONNECTION_WINDOW_SIZE: i32 = 1_048_576;
pub(crate) const DEFAULT_SETTINGS_MAX_HEADER_LIST_SIZE: u32 = 48 * 1024;
pub(crate) const DEFAULT_MAX_COUNTINUATIONS: usize = 5;
pub(crate) const DEFAULT_CAPACITY_TIMEOUT: Seconds = Seconds(3);

pub(crate) const PREFACE_LEN: usize = 24;
pub(crate) const PREFACE: Bytes = Bytes::from_static(b"PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n");

pub(crate) const HTTP_SCHEME: ByteString = ByteString::from_static("http");
pub(crate) const HTTPS_SCHEME: ByteString = ByteString::from_static("https");
