make final codes public, add comments

This commit is contained in:
yggverse 2025-03-24 23:32:18 +02:00
parent 4eb998ef20
commit 473ed48715
6 changed files with 20 additions and 11 deletions

View file

@ -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>>,