mirror of
https://github.com/YGGverse/ggemini.git
synced 2026-03-31 09:05:45 +00:00
draft new components
This commit is contained in:
parent
394ae0cf4f
commit
d5cea24891
3 changed files with 11 additions and 0 deletions
|
|
@ -1,6 +1,7 @@
|
|||
//! Read and parse Gemini response as GObject
|
||||
|
||||
pub mod body;
|
||||
pub mod data;
|
||||
pub mod meta;
|
||||
|
||||
pub use body::Body;
|
||||
|
|
|
|||
6
src/client/response/data.rs
Normal file
6
src/client/response/data.rs
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
//! Gemini response could have different MIME type for data.
|
||||
//! Use one of these components to parse response according to content type expected.
|
||||
//!
|
||||
//! * MIME type could be detected using `client::response::Meta` parser
|
||||
|
||||
pub mod text;
|
||||
4
src/client/response/data/text/error.rs
Normal file
4
src/client/response/data/text/error.rs
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
#[derive(Debug)]
|
||||
pub enum Error {
|
||||
// nothing yet..
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue