Skip to main content

value_to_chunks

Function value_to_chunks 

Source
pub async fn value_to_chunks(value: Value, tx: &Sender<ResponseChunk>)
Expand description

Convert a single-shot PHP response Value into a stream of ResponseChunks.

Sends Headers, optionally Body, then End. Errors are logged and result in an empty body.