use String;
use Error;
/// Convenience alias for crate results using [`HttpUrlError`].
pub type Result<T> = Result;
/// Errors that can occur when constructing or building an [`HttpUrl`][crate::HttpUrl].
///
/// URL parsing itself is performed by the `url` crate; this enum only covers
/// the thin layer on top: forwarding [`url::ParseError`] and enforcing the
/// "http/https only" invariant.