implement titan and gemini requests in single file

This commit is contained in:
yggverse 2025-01-27 20:42:17 +02:00
parent 0cb5ff9cbc
commit 6da4c2ed52
5 changed files with 87 additions and 112 deletions

View file

@ -53,9 +53,9 @@ use ggemini::client::{
fn main() -> ExitCode {
Client::new().request_async(
Request::gemini( // or `Request::titan`
Uri::parse("gemini://geminiprotocol.net/", UriFlags::NONE).unwrap(),
),
Request::Gemini { // or `Request::Titan`
uri: Uri::parse("gemini://geminiprotocol.net/", UriFlags::NONE).unwrap(),
},
Priority::DEFAULT,
Cancellable::new(),
None, // optional `GTlsCertificate`