aquatic_http: use untagged enum for Response; update TODO

This commit is contained in:
Joakim Frostegård 2020-07-02 13:58:32 +02:00
parent 6b1f11635b
commit d2e950b431
2 changed files with 5 additions and 0 deletions

View file

@ -10,8 +10,12 @@
* fix overcomplicated and probably incorrect implementation
* support TLS and plain at the same time??
* really close connections after sending response??
* fixed size buffer is probably bad
* compact peer representation in announce response
* scrape info hash parsing: multiple ought to be accepted
* move stuff to common crate with ws: what about Request/InMessage etc?
* info hashes, peer ids: verify that they are 20 bytes
* AnnounceRequest.compact: parse int to bool
## aquatic_ws
* tests

View file

@ -161,6 +161,7 @@ impl Request {
#[derive(Debug, Clone, Serialize)]
#[serde(untagged)]
pub enum Response {
AnnounceSuccess(AnnounceResponseSuccess),
AnnounceFailure(AnnounceResponseFailure),