mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
rename mod to Request, reorganize featurelogic
This commit is contained in:
parent
e5e3f9956a
commit
cfaa0152d6
5 changed files with 60 additions and 47 deletions
|
|
@ -1,9 +1,9 @@
|
|||
mod protocol;
|
||||
mod feature;
|
||||
mod redirect;
|
||||
mod status;
|
||||
|
||||
// Children dependencies
|
||||
use protocol::Protocol;
|
||||
use feature::Feature;
|
||||
use redirect::Redirect;
|
||||
use status::Status;
|
||||
|
||||
|
|
@ -88,9 +88,10 @@ impl Client {
|
|||
}
|
||||
|
||||
// Route request by protocol
|
||||
match Protocol::from_string(query) {
|
||||
Protocol::Gemini { uri } | Protocol::Titan { uri } => todo!("{uri}"),
|
||||
Protocol::Undefined => todo!(),
|
||||
match Feature::from_string(query) {
|
||||
Feature::Default { request }
|
||||
| Feature::Download { request }
|
||||
| Feature::Source { request } => request.send(), // @TODO
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue