update comments

This commit is contained in:
yggverse 2024-12-03 20:15:07 +02:00
parent f0f34dfdb2
commit 18806e2f38

View file

@ -40,10 +40,11 @@ fn main() -> ExitCode {
None, // optional `GTlsCertificate` None, // optional `GTlsCertificate`
|result: Result<Response, Error>| match result { |result: Result<Response, Error>| match result {
Ok(response) => { Ok(response) => {
// route by status code
match response.meta.status { match response.meta.status {
// route by status code // is code 20, handle `GIOStream` by content type
Status::Success => match response.meta.mime { Status::Success => match response.meta.mime {
// handle `GIOStream` by content type // is gemtext, see also ggemtext crate!
Some(Mime::TextGemini) => todo!(), Some(Mime::TextGemini) => todo!(),
_ => todo!(), _ => todo!(),
}, },