Skip to main content

write_json_string

Function write_json_string 

pub async fn write_json_string<W>(
    writer: &mut W,
    reader: impl AsyncRead + Unpin,
    utf8: bool,
) -> Result<(), Box<dyn Error + Send + Sync>>
where W: AsyncWrite + Unpin,
Available on crate features http and std only.
Expand description

Stream one JSON string, escaping UTF-8 or encoding binary without a body-sized buffer.