📝 docs: trying to figure how I can keep the client stream open
parent
3240ad72b2
commit
e8e733046c
|
@ -77,11 +77,13 @@ impl Default for ServerStatus {
|
||||||
pub struct Relay {
|
pub struct Relay {
|
||||||
pub (crate) config: RwLock <Config>,
|
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) request_rendezvous: Mutex <HashMap <String, RequestRendezvous>>,
|
||||||
pub (crate) server_status: Mutex <HashMap <String, ServerStatus>>,
|
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) response_rendezvous: RwLock <DashMap <String, ResponseRendezvous>>,
|
||||||
|
|
||||||
pub (crate) shutdown_watch_tx: watch::Sender <bool>,
|
pub (crate) shutdown_watch_tx: watch::Sender <bool>,
|
||||||
|
|
|
@ -67,7 +67,7 @@ HTTP/1.1 200 OK
|
||||||
|
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
"id": "JOZC7VRA",
|
"id": "01F4B61CQF1GY39BM5H24SR9H3",
|
||||||
"req": {
|
"req": {
|
||||||
"method": "GET",
|
"method": "GET",
|
||||||
"uri": "/files",
|
"uri": "/files",
|
||||||
|
@ -84,7 +84,7 @@ Step 4 doesn't involve any HTTP.
|
||||||
Step 5, server to relay:
|
Step 5, server to relay:
|
||||||
|
|
||||||
```text
|
```text
|
||||||
POST /7ZSFUKGV/http_response/JOZC7VRA http/1.1
|
POST /7ZSFUKGV/http_response/01F4B61CQF1GY39BM5H24SR9H3 http/1.1
|
||||||
Host: example.com
|
Host: example.com
|
||||||
X-PTTH-2LJYXWC4: ZXhhbXBsZSB0ZXh0IGdvZXMgaGVyZQo=
|
X-PTTH-2LJYXWC4: ZXhhbXBsZSB0ZXh0IGdvZXMgaGVyZQo=
|
||||||
Content-Length: 2400
|
Content-Length: 2400
|
||||||
|
|
Loading…
Reference in New Issue