mirror of
https://github.com/YGGverse/ggemini.git
synced 2026-03-31 17:15:31 +00:00
update comments
This commit is contained in:
parent
f0f34dfdb2
commit
18806e2f38
1 changed files with 3 additions and 2 deletions
|
|
@ -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!(),
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue