mirror of
https://github.com/greatest-ape/aquatic.git
synced 2026-10-23 01:41:20 +00:00
aquatic_http: use untagged enum for Response; update TODO
This commit is contained in:
1 parent
6b1f11635b
commit
d2e950b431
2 files changed
+5
No files matched your search
@@ -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),
|
||||
|
||||
Reference in new issue
Block a user