Skip to content

Commit

Permalink
update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
yggverse committed Dec 3, 2024
1 parent f0f34df commit 18806e2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,11 @@ fn main() -> ExitCode {
None, // optional `GTlsCertificate`
|result: Result<Response, Error>| 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!(),
},
Expand Down

0 comments on commit 18806e2

Please sign in to comment.