Struct HttpSourceOptions
pub struct HttpSourceOptions {
pub ca_bundle: Option<PathBuf>,
pub insecure: bool,
}Expand description
Configuration for an HTTP(S) byte-range source.
Fields§
§ca_bundle: Option<PathBuf>PEM certificate bundle used for TLS verification. When unset, ureq’s
default rustls root store is used. HttpSourceOptions::from_env
populates this from SSL_CERT_FILE.
insecure: boolAccept invalid TLS certificates. Use only for public, read-only data.
Implementations§
§impl HttpSourceOptions
impl HttpSourceOptions
pub fn from_env() -> HttpSourceOptions
pub fn from_env() -> HttpSourceOptions
Build options from process environment.
SSL_CERT_FILE points to a PEM CA bundle. NANO_HTTP_INSECURE=1
(also true or yes) disables TLS certificate verification.
pub fn with_ca_bundle(self, path: impl Into<PathBuf>) -> HttpSourceOptions
pub fn insecure(self, insecure: bool) -> HttpSourceOptions
Trait Implementations§
§impl Clone for HttpSourceOptions
impl Clone for HttpSourceOptions
§fn clone(&self) -> HttpSourceOptions
fn clone(&self) -> HttpSourceOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for HttpSourceOptions
impl Debug for HttpSourceOptions
§impl Default for HttpSourceOptions
impl Default for HttpSourceOptions
§fn default() -> HttpSourceOptions
fn default() -> HttpSourceOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for HttpSourceOptions
impl RefUnwindSafe for HttpSourceOptions
impl Send for HttpSourceOptions
impl Sync for HttpSourceOptions
impl Unpin for HttpSourceOptions
impl UnsafeUnpin for HttpSourceOptions
impl UnwindSafe for HttpSourceOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more