mirror of
https://github.com/YGGverse/ggemini.git
synced 2026-04-01 17:45:35 +00:00
make final codes public, add comments
This commit is contained in:
parent
4eb998ef20
commit
473ed48715
6 changed files with 20 additions and 11 deletions
|
|
@ -4,8 +4,12 @@ pub mod header;
|
|||
pub use error::Error;
|
||||
pub use header::Header;
|
||||
|
||||
const CODE: &[u8] = b"20";
|
||||
/// [Success](https://geminiprotocol.net/docs/protocol-specification.gmi#success) status code
|
||||
pub const CODE: &[u8] = b"20";
|
||||
|
||||
/// Holder for [Success](https://geminiprotocol.net/docs/protocol-specification.gmi#success) status code
|
||||
/// * this response type MAY contain body data
|
||||
/// * the header has closed members to require valid construction
|
||||
pub struct Default {
|
||||
pub header: Header,
|
||||
pub content: Option<Vec<u8>>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue