mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
begin new multi-protocol parser implementation for Client
This commit is contained in:
parent
b43f0b68f8
commit
042ace98d3
4 changed files with 88 additions and 0 deletions
|
|
@ -1,7 +1,9 @@
|
|||
mod protocol;
|
||||
mod redirect;
|
||||
mod status;
|
||||
|
||||
// Children dependencies
|
||||
use protocol::Protocol;
|
||||
use redirect::Redirect;
|
||||
use status::Status;
|
||||
|
||||
|
|
@ -84,5 +86,11 @@ impl Client {
|
|||
.replace(Status::failure_redirect_limit(redirect::LIMIT, true));
|
||||
// @TODO return;
|
||||
}
|
||||
|
||||
// Route request by protocol
|
||||
match Protocol::from_string(query) {
|
||||
Protocol::Gemini { uri } | Protocol::Titan { uri } => todo!("{uri}"),
|
||||
Protocol::Undefined => todo!(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue