mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-02-23 15:49:49 +01:00
regen all APIs and CLIs
This commit is contained in:
@@ -667,7 +667,13 @@ impl<'n> Engine<'n> {
|
||||
oauth2::InstalledFlowReturnMethod::HTTPRedirect,
|
||||
).persist_tokens_to_disk(format!("{}/safebrowsing4", config_dir)).build().await.unwrap();
|
||||
|
||||
let client = hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots());
|
||||
let client = hyper::Client::builder().build(
|
||||
hyper_rustls::HttpsConnectorBuilder::new().with_native_roots()
|
||||
.https_or_http()
|
||||
.enable_http1()
|
||||
.enable_http2()
|
||||
.build()
|
||||
);
|
||||
let engine = Engine {
|
||||
opt: opt,
|
||||
hub: api::Safebrowsing::new(client, auth),
|
||||
@@ -875,7 +881,7 @@ async fn main() {
|
||||
|
||||
let mut app = App::new("safebrowsing4")
|
||||
.author("Sebastian Thiel <byronimo@gmail.com>")
|
||||
.version("3.0.0+20220305")
|
||||
.version("3.1.0+20220305")
|
||||
.about("Enables client applications to check web resources (most commonly URLs) against Google-generated lists of unsafe web resources. The Safe Browsing APIs are for non-commercial use only. If you need to use APIs to detect malicious URLs for commercial purposes – meaning “for sale or revenue-generating purposes” – please refer to the Web Risk API.")
|
||||
.after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_safebrowsing4_cli")
|
||||
.arg(Arg::with_name("folder")
|
||||
|
||||
Reference in New Issue
Block a user