mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-01 10:15:31 +00:00
aquatic_http: use untagged enum for Response; update TODO
This commit is contained in:
parent
6b1f11635b
commit
d2e950b431
2 changed files with 5 additions and 0 deletions
4
TODO.md
4
TODO.md
|
|
@ -10,8 +10,12 @@
|
||||||
* fix overcomplicated and probably incorrect implementation
|
* fix overcomplicated and probably incorrect implementation
|
||||||
* support TLS and plain at the same time??
|
* support TLS and plain at the same time??
|
||||||
* really close connections after sending response??
|
* 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
|
* scrape info hash parsing: multiple ought to be accepted
|
||||||
* move stuff to common crate with ws: what about Request/InMessage etc?
|
* 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
|
## aquatic_ws
|
||||||
* tests
|
* tests
|
||||||
|
|
|
||||||
|
|
@ -161,6 +161,7 @@ impl Request {
|
||||||
|
|
||||||
|
|
||||||
#[derive(Debug, Clone, Serialize)]
|
#[derive(Debug, Clone, Serialize)]
|
||||||
|
#[serde(untagged)]
|
||||||
pub enum Response {
|
pub enum Response {
|
||||||
AnnounceSuccess(AnnounceResponseSuccess),
|
AnnounceSuccess(AnnounceResponseSuccess),
|
||||||
AnnounceFailure(AnnounceResponseFailure),
|
AnnounceFailure(AnnounceResponseFailure),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue