📝 docs: trying to figure how I can keep the client stream open

main
_ 2021-04-27 22:36:44 -05:00
parent 3240ad72b2
commit e8e733046c
2 changed files with 6 additions and 4 deletions

View File

@ -77,11 +77,13 @@ impl Default for ServerStatus {
pub struct Relay {
pub (crate) config: RwLock <Config>,
// Key: Server ID
/// The parked clients or parked server, keyed by server
pub (crate) request_rendezvous: Mutex <HashMap <String, RequestRendezvous>>,
pub (crate) server_status: Mutex <HashMap <String, ServerStatus>>,
// Key: Request ID
/// The parked requests, keyed by request ID
pub (crate) response_rendezvous: RwLock <DashMap <String, ResponseRendezvous>>,
pub (crate) shutdown_watch_tx: watch::Sender <bool>,

View File

@ -67,7 +67,7 @@ HTTP/1.1 200 OK
[
{
"id": "JOZC7VRA",
"id": "01F4B61CQF1GY39BM5H24SR9H3",
"req": {
"method": "GET",
"uri": "/files",
@ -84,7 +84,7 @@ Step 4 doesn't involve any HTTP.
Step 5, server to relay:
```text
POST /7ZSFUKGV/http_response/JOZC7VRA http/1.1
POST /7ZSFUKGV/http_response/01F4B61CQF1GY39BM5H24SR9H3 http/1.1
Host: example.com
X-PTTH-2LJYXWC4: ZXhhbXBsZSB0ZXh0IGdvZXMgaGVyZQo=
Content-Length: 2400