mirror of
https://github.com/YGGverse/ggemini.git
synced 2026-04-01 01:25:32 +00:00
15 lines
313 B
Rust
15 lines
313 B
Rust
use glib::Uri;
|
|
|
|
/// [Gemini](https://geminiprotocol.net/docs/protocol-specification.gmi) protocol enum object for `Request`
|
|
pub struct Gemini {
|
|
pub uri: Uri,
|
|
}
|
|
|
|
impl Gemini {
|
|
// Getters
|
|
|
|
/// Get header string for `Self`
|
|
pub fn header(&self) -> String {
|
|
format!("{}\r\n", self.uri)
|
|
}
|
|
}
|