kvarn_utils::prelude::uri

Struct Scheme

pub struct Scheme { /* private fields */ }
Expand description

Represents the scheme component of a URI

Implementations§

§

impl Scheme

pub const HTTP: Scheme = _

HTTP protocol scheme

pub const HTTPS: Scheme = _

HTTP protocol over TLS.

pub fn as_str(&self) -> &str

Return a str representation of the scheme

§Examples