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!(), },