mirror of
https://github.com/YGGverse/ggemini.git
synced 2026-03-31 09:05:45 +00:00
begin header holder implementation with lazy parser by getters, add request::Mode, add common header_bytes helper
This commit is contained in:
parent
a12a73d311
commit
7c518cecf6
13 changed files with 267 additions and 151 deletions
|
|
@ -43,7 +43,7 @@ use gio::*;
|
|||
use glib::*;
|
||||
|
||||
use ggemini::client::{
|
||||
connection::{Request, Response},
|
||||
connection::{request::{Mode, Request}, Response},
|
||||
Client,
|
||||
};
|
||||
|
||||
|
|
@ -51,6 +51,7 @@ fn main() -> ExitCode {
|
|||
Client::new().request_async(
|
||||
Request::Gemini { // or `Request::Titan`
|
||||
uri: Uri::parse("gemini://geminiprotocol.net/", UriFlags::NONE).unwrap(),
|
||||
mode: Mode::Header // handle content separately (based on MIME)
|
||||
},
|
||||
Priority::DEFAULT,
|
||||
Cancellable::new(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue