/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use once_cell::sync::Lazy; use parking_lot::RwLock; use std::time::Duration; use url::Url;
/// Note: reqwest allows these only to be specified per-Client. concept-fetch /// allows these to be specified on each call to fetch. I think it's worth /// keeping a single global reqwest::Client in the reqwest backend, to simplify /// the way we abstract away from these. /// /// In the future, should we need it, we might be able to add a CustomClient type /// with custom settings. In the reqwest backend this would store a Client, and /// in the concept-fetch backend it would only store the settings, and populate /// things on the fly. #[derive(Debug)] #[non_exhaustive] pubstruct Settings { pub read_timeout: Option<Duration>, pub connect_timeout: Option<Duration>, pub follow_redirects: bool, pub use_caches: bool, // For testing purposes, we allow exactly one additional Url which is // allowed to not be https. pub addn_allowed_insecure_url: Option<Url>,
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.