aboutsummaryrefslogtreecommitdiff
path: root/examples/async_request.rs
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-03-24 14:24:20 +0000
committerFuwn <[email protected]>2024-03-24 14:34:09 +0000
commit3970616451ab4336e37a7ddfdc67f51e01e55926 (patch)
tree6bf9fa01811004ff408ac5da40354bc34ddabc26 /examples/async_request.rs
parentfeat(crate): bump version (diff)
downloadgerm-3970616451ab4336e37a7ddfdc67f51e01e55926.tar.xz
germ-3970616451ab4336e37a7ddfdc67f51e01e55926.zip
refactor: module for blocking, default to non-blocking
Diffstat (limited to 'examples/async_request.rs')
-rw-r--r--examples/async_request.rs29
1 files changed, 0 insertions, 29 deletions
diff --git a/examples/async_request.rs b/examples/async_request.rs
deleted file mode 100644
index 604d6d4..0000000
--- a/examples/async_request.rs
+++ /dev/null
@@ -1,29 +0,0 @@
-// This file is part of Germ <https://github.com/gemrest/germ>.
-// Copyright (C) 2022-2022 Fuwn <[email protected]>
-//
-// This program is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, version 3.
-//
-// This program is distributed in the hope that it will be useful, but
-// WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-// General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program. If not, see <http://www.gnu.org/licenses/>.
-//
-// Copyright (C) 2022-2022 Fuwn <[email protected]>
-// SPDX-License-Identifier: GPL-3.0-only
-
-#[tokio::main]
-async fn main() {
- match germ::request::sync::request(
- &url::Url::parse("gemini://fuwn.me").unwrap(),
- )
- .await
- {
- Ok(response) => println!("{:?}", response),
- Err(_) => {}
- }
-}