rename mode const

This commit is contained in:
yggverse 2025-03-24 19:57:54 +02:00
parent 8feab6b93b
commit 161142c809
4 changed files with 6 additions and 6 deletions

View file

@ -86,7 +86,7 @@ fn test_gemini_header() {
assert_eq!(
Request::Gemini {
uri: Uri::parse(REQUEST, UriFlags::NONE).unwrap(),
mode: Mode::Header
mode: Mode::HeaderOnly
}
.header(),
format!("{REQUEST}\r\n")
@ -111,7 +111,7 @@ fn test_titan_header() {
data: Bytes::from(DATA),
mime: Some(MIME.to_string()),
token: Some(TOKEN.to_string()),
mode: Mode::Header
mode: Mode::HeaderOnly
}
.header(),
format!(

View file

@ -2,5 +2,5 @@
pub enum Mode {
/// Request header bytes only, process content bytes manually
/// * useful for manual content type handle: text, stream or large content loaded by chunks
Header,
HeaderOnly,
}