mirror of
https://github.com/YGGverse/ggemini.git
synced 2026-03-31 17:15:31 +00:00
add DEFAULT_MIME const with comments
This commit is contained in:
parent
aa44e2723d
commit
86af47ff49
1 changed files with 7 additions and 1 deletions
|
|
@ -1,9 +1,15 @@
|
||||||
use glib::{Bytes, Uri, UriHideFlags};
|
use glib::{Bytes, Uri, UriHideFlags};
|
||||||
|
|
||||||
/// [Titan](gemini://transjovian.org/titan/page/The%20Titan%20Specification) protocol enum object for `Request`
|
/// Optionally use this value by default for the text input
|
||||||
|
pub const DEFAULT_MIME: &str = "text/gemini";
|
||||||
|
|
||||||
|
/// Formatted [Titan](gemini://transjovian.org/titan/page/The%20Titan%20Specification) `Request`
|
||||||
pub struct Titan {
|
pub struct Titan {
|
||||||
pub uri: Uri,
|
pub uri: Uri,
|
||||||
pub data: Bytes,
|
pub data: Bytes,
|
||||||
|
/// MIME type is optional argument by Titan protocol specification,
|
||||||
|
/// but server MAY reject the request without `mime` value provided
|
||||||
|
/// * see also `DEFAULT_MIME`
|
||||||
pub mime: Option<String>,
|
pub mime: Option<String>,
|
||||||
pub token: Option<String>,
|
pub token: Option<String>,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue