From aa44e2723d174456ad8a07f1df9ddc0f8fce73da Mon Sep 17 00:00:00 2001 From: yggverse Date: Sat, 25 Jan 2025 21:29:41 +0200 Subject: [PATCH] update readme --- README.md | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 43f8419..aa8e128 100644 --- a/README.md +++ b/README.md @@ -63,25 +63,23 @@ fn main() -> ExitCode { Ok(response) => { // route by status code match response.meta.status { - // is code 20, handle `GIOStream` by content type + // code 20, handle `GIOStream` by content type Status::Success => match response.meta.mime.unwrap().value.as_str() { - // is gemtext, see ggemtext crate to parse + // gemtext, see ggemtext crate to parse "text/gemini" => todo!(), - // other types + // other content types _ => todo!(), }, _ => todo!(), } } - Err(e) => todo!("{e}"), + Err(_) => todo!(), }, ); ExitCode::SUCCESS } ``` -* to send requests using Titan protocol, see `titan_request_async` implementation - ## Other crates * [ggemtext](https://github.com/YGGverse/ggemtext) - Glib-oriented Gemtext API \ No newline at end of file