mirror of
https://github.com/YGGverse/ggemini.git
synced 2026-03-31 17:15:31 +00:00
update readme
This commit is contained in:
parent
67989dba63
commit
aa44e2723d
1 changed files with 4 additions and 6 deletions
10
README.md
10
README.md
|
|
@ -63,25 +63,23 @@ fn main() -> ExitCode {
|
|||
Ok(response) => {
|
||||
// route by status code
|
||||
match response.meta.status {
|
||||
// is code 20, handle `GIOStream` by content type
|
||||
// code 20, handle `GIOStream` by content type
|
||||
Status::Success => match response.meta.mime.unwrap().value.as_str() {
|
||||
// is gemtext, see ggemtext crate to parse
|
||||
// gemtext, see ggemtext crate to parse
|
||||
"text/gemini" => todo!(),
|
||||
// other types
|
||||
// other content types
|
||||
_ => todo!(),
|
||||
},
|
||||
_ => todo!(),
|
||||
}
|
||||
}
|
||||
Err(e) => todo!("{e}"),
|
||||
Err(_) => todo!(),
|
||||
},
|
||||
);
|
||||
ExitCode::SUCCESS
|
||||
}
|
||||
```
|
||||
|
||||
* to send requests using Titan protocol, see `titan_request_async` implementation
|
||||
|
||||
## Other crates
|
||||
|
||||
* [ggemtext](https://github.com/YGGverse/ggemtext) - Glib-oriented Gemtext API
|
||||
Loading…
Add table
Add a link
Reference in a new issue