proxmox-rest-server: OutputFormatter: add new format_data_streaming method
that takes the data in form of a `Box<dyn SerializableReturn + Send>` instead of a Value. Implement it in json and extjs formatter, by starting a thread and stream the serialized data via a `BufWriter<SenderWriter>` and use the Receiver side as a stream for the response body. Signed-off-by: Dominik Csapak <d.csapak@proxmox.com> Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
committed by
Wolfgang Bumiller
parent
9c3b29bd8f
commit
2ef2c0fe0c
@ -27,6 +27,7 @@ serde = { version = "1.0", features = [ "derive" ] }
|
||||
serde_json = "1.0"
|
||||
tokio = { version = "1.6", features = ["signal", "process"] }
|
||||
tokio-openssl = "0.6.1"
|
||||
tokio-stream = "0.1.0"
|
||||
tower-service = "0.3.0"
|
||||
url = "2.1"
|
||||
|
||||
|
Reference in New Issue
Block a user