mirror of
https://github.com/YGGverse/ggemini.git
synced 2026-03-31 09:05:45 +00:00
implement Request constructors, remove build methods
This commit is contained in:
parent
e2097138a9
commit
ce5d3ac4d2
5 changed files with 29 additions and 29 deletions
|
|
@ -53,10 +53,8 @@ use ggemini::client::{
|
|||
|
||||
fn main() -> ExitCode {
|
||||
Client::new().request_async(
|
||||
Request::Gemini(
|
||||
Gemini::build(
|
||||
Uri::parse("gemini://geminiprotocol.net/", UriFlags::NONE).unwrap()
|
||||
)
|
||||
Request::gemini(
|
||||
Uri::parse(REQUEST, UriFlags::NONE).unwrap(),
|
||||
),
|
||||
Priority::DEFAULT,
|
||||
Cancellable::new(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue