response_tokenizer: rewrite

This commit contains a rewrite of the response tokenizer, which
introduces lazy parsing of the response, handling of binary data, some
tests, as well as just generally more robustness against errors.
This commit is contained in:
2025-11-24 23:49:27 +09:00
parent bdbecf3e8f
commit 59a347f610
39 changed files with 365 additions and 107 deletions
+6
View File
@@ -15,6 +15,12 @@ pub struct AddRequest {
position: Option<SongPosition>,
}
impl AddRequest {
pub fn new(uri: Uri, position: Option<SongPosition>) -> Self {
Self { uri, position }
}
}
impl Command for Add {
type Request = AddRequest;
type Response = ();