mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +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
|
||||
* 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
|
||||
|
|
|
|||
|
|
@ -161,6 +161,7 @@ impl Request {
|
|||
|
||||
|
||||
#[derive(Debug, Clone, Serialize)]
|
||||
#[serde(untagged)]
|
||||
pub enum Response {
|
||||
AnnounceSuccess(AnnounceResponseSuccess),
|
||||
AnnounceFailure(AnnounceResponseFailure),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue