Skip to main content

read_dot_response

Function read_dot_response 

Source
pub async fn read_dot_response<R: AsyncRead + Unpin>(
    reader: &mut BufReader<R>,
    response: String,
) -> Result<String>
Expand description

Read through the exact . terminator. Preserve content whitespace, undo dot stuffing, and reject EOF or a size violation instead of reporting a partial reply.