mirror of
https://github.com/YGGverse/ggemini.git
synced 2026-03-31 17:15:31 +00:00
update example with new api version
This commit is contained in:
parent
7e9c574d4a
commit
54fabd241b
1 changed files with 4 additions and 3 deletions
|
|
@ -43,9 +43,10 @@ fn main() -> ExitCode {
|
|||
// route by status code
|
||||
match response.meta.status {
|
||||
// is code 20, handle `GIOStream` by content type
|
||||
Status::Success => match response.meta.mime {
|
||||
// is gemtext, see also ggemtext crate!
|
||||
Some(Mime::TextGemini) => todo!(),
|
||||
Status::Success => match response.meta.mime.unwrap().value.as_str() {
|
||||
// is gemtext, see ggemtext crate to parse
|
||||
"text/gemini" => todo!(),
|
||||
// other types
|
||||
_ => todo!(),
|
||||
},
|
||||
_ => todo!(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue