remove unsupported modes, add comments

This commit is contained in:
yggverse 2025-03-24 07:06:54 +02:00
parent 7c518cecf6
commit 0717e473b7
2 changed files with 3 additions and 3 deletions

View file

@ -75,7 +75,6 @@ impl Connection {
move |result| match result { move |result| match result {
Ok(_) => match request { Ok(_) => match request {
Request::Gemini { mode, .. } => match mode { Request::Gemini { mode, .. } => match mode {
Mode::All => todo!(),
Mode::Header => Response::header_from_connection_async( Mode::Header => Response::header_from_connection_async(
self, self,
priority, priority,
@ -97,7 +96,6 @@ impl Connection {
Some(&cancellable.clone()), Some(&cancellable.clone()),
move |result| match result { move |result| match result {
Ok(_) => match mode { Ok(_) => match mode {
Mode::All => todo!(),
Mode::Header => Response::header_from_connection_async( Mode::Header => Response::header_from_connection_async(
self, self,
priority, priority,

View file

@ -1,4 +1,6 @@
/// Request modes
pub enum Mode { 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, Header,
All,
} }