mirror of
https://github.com/YGGverse/ggemini.git
synced 2026-03-31 09:05:45 +00:00
remove unsupported modes, add comments
This commit is contained in:
parent
7c518cecf6
commit
0717e473b7
2 changed files with 3 additions and 3 deletions
|
|
@ -75,7 +75,6 @@ impl Connection {
|
|||
move |result| match result {
|
||||
Ok(_) => match request {
|
||||
Request::Gemini { mode, .. } => match mode {
|
||||
Mode::All => todo!(),
|
||||
Mode::Header => Response::header_from_connection_async(
|
||||
self,
|
||||
priority,
|
||||
|
|
@ -97,7 +96,6 @@ impl Connection {
|
|||
Some(&cancellable.clone()),
|
||||
move |result| match result {
|
||||
Ok(_) => match mode {
|
||||
Mode::All => todo!(),
|
||||
Mode::Header => Response::header_from_connection_async(
|
||||
self,
|
||||
priority,
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
/// Request modes
|
||||
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,
|
||||
All,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue