Skip to main content

write_message

Function write_message 

Source
pub async fn write_message<W: AsyncWrite + Unpin>(
    writer: &mut W,
    json: &str,
) -> Result<(), Error>
Expand description

Write a DAP message to the stream

Adds the Content-Length header and writes the JSON body