mirror of
https://github.com/YGGverse/ggemini.git
synced 2026-03-31 17:15:31 +00:00
implement titan and gemini requests in single file
This commit is contained in:
parent
0cb5ff9cbc
commit
6da4c2ed52
5 changed files with 87 additions and 112 deletions
|
|
@ -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`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue