From 18806e2f383604d323ffcdc4bfd17c7b97989235 Mon Sep 17 00:00:00 2001 From: yggverse Date: Tue, 3 Dec 2024 20:15:07 +0200 Subject: [PATCH] update comments --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 60746a0..2998777 100644 --- a/README.md +++ b/README.md @@ -40,10 +40,11 @@ fn main() -> ExitCode { None, // optional `GTlsCertificate` |result: Result| match result { Ok(response) => { + // route by status code match response.meta.status { - // route by status code + // is code 20, handle `GIOStream` by content type Status::Success => match response.meta.mime { - // handle `GIOStream` by content type + // is gemtext, see also ggemtext crate! Some(Mime::TextGemini) => todo!(), _ => todo!(), },